mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pcmcia: use struct resource for PCMCIA devices
Introduce a new field into struct pcmcia_device named "resource" and of type struct resource *, which contains the IO port ranges allocated for this device. Memory window ranges and registration with the resource trees will follow at a later date. Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
3dace8cf15
commit
2ce4905e4d
5 changed files with 95 additions and 73 deletions
|
|
@ -68,9 +68,6 @@ typedef struct io_req_t {
|
|||
} io_req_t;
|
||||
|
||||
/* Attributes for RequestIO and ReleaseIO */
|
||||
#define IO_SHARED 0x01
|
||||
#define IO_FIRST_SHARED 0x02
|
||||
#define IO_FORCE_ALIAS_ACCESS 0x04
|
||||
#define IO_DATA_PATH_WIDTH 0x18
|
||||
#define IO_DATA_PATH_WIDTH_8 0x00
|
||||
#define IO_DATA_PATH_WIDTH_16 0x08
|
||||
|
|
|
|||
|
|
@ -80,13 +80,13 @@ struct pcmcia_device {
|
|||
struct list_head socket_device_list;
|
||||
|
||||
/* deprecated, will be cleaned up soon */
|
||||
u_int open;
|
||||
io_req_t io;
|
||||
config_req_t conf;
|
||||
window_handle_t win;
|
||||
|
||||
/* device setup */
|
||||
unsigned int irq;
|
||||
struct resource *resource[MAX_IO_WIN];
|
||||
|
||||
/* Is the device suspended? */
|
||||
u16 suspended:1;
|
||||
|
|
@ -120,6 +120,7 @@ struct pcmcia_device {
|
|||
|
||||
/* data private to drivers */
|
||||
void *priv;
|
||||
unsigned int open;
|
||||
};
|
||||
|
||||
#define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue