diff options
Diffstat (limited to 'include/pcmcia/cs.h')
| -rw-r--r-- | include/pcmcia/cs.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/include/pcmcia/cs.h b/include/pcmcia/cs.h index 3585e1be4c5c..42c8759f0bdc 100644 --- a/include/pcmcia/cs.h +++ b/include/pcmcia/cs.h | |||
| @@ -28,45 +28,10 @@ typedef struct conf_reg_t { | |||
| 28 | #define CS_WRITE 2 | 28 | #define CS_WRITE 2 |
| 29 | 29 | ||
| 30 | /* for AdjustResourceInfo */ | 30 | /* for AdjustResourceInfo */ |
| 31 | typedef struct adjust_t { | ||
| 32 | u_int Action; | ||
| 33 | u_int Resource; | ||
| 34 | u_int Attributes; | ||
| 35 | union { | ||
| 36 | struct memory { | ||
| 37 | u_long Base; | ||
| 38 | u_long Size; | ||
| 39 | } memory; | ||
| 40 | struct io { | ||
| 41 | ioaddr_t BasePort; | ||
| 42 | ioaddr_t NumPorts; | ||
| 43 | u_int IOAddrLines; | ||
| 44 | } io; | ||
| 45 | struct irq { | ||
| 46 | u_int IRQ; | ||
| 47 | } irq; | ||
| 48 | } resource; | ||
| 49 | } adjust_t; | ||
| 50 | |||
| 51 | /* Action field */ | 31 | /* Action field */ |
| 52 | #define REMOVE_MANAGED_RESOURCE 1 | 32 | #define REMOVE_MANAGED_RESOURCE 1 |
| 53 | #define ADD_MANAGED_RESOURCE 2 | 33 | #define ADD_MANAGED_RESOURCE 2 |
| 54 | #define GET_FIRST_MANAGED_RESOURCE 3 | 34 | |
| 55 | #define GET_NEXT_MANAGED_RESOURCE 4 | ||
| 56 | /* Resource field */ | ||
| 57 | #define RES_MEMORY_RANGE 1 | ||
| 58 | #define RES_IO_RANGE 2 | ||
| 59 | #define RES_IRQ 3 | ||
| 60 | /* Attribute field */ | ||
| 61 | #define RES_IRQ_TYPE 0x03 | ||
| 62 | #define RES_IRQ_TYPE_EXCLUSIVE 0 | ||
| 63 | #define RES_IRQ_TYPE_TIME 1 | ||
| 64 | #define RES_IRQ_TYPE_DYNAMIC 2 | ||
| 65 | #define RES_IRQ_CSC 0x04 | ||
| 66 | #define RES_SHARED 0x08 | ||
| 67 | #define RES_RESERVED 0x10 | ||
| 68 | #define RES_ALLOCATED 0x20 | ||
| 69 | #define RES_REMOVED 0x40 | ||
| 70 | 35 | ||
| 71 | typedef struct event_callback_args_t { | 36 | typedef struct event_callback_args_t { |
| 72 | struct pcmcia_device *client_handle; | 37 | struct pcmcia_device *client_handle; |
