Rev 750 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 750 | Rev 1251 | ||
---|---|---|---|
Line 125... | Line 125... | ||
125 | } __attribute__ ((packed)); |
125 | } __attribute__ ((packed)); |
126 | }; |
126 | }; |
127 | } __attribute__ ((packed)); |
127 | } __attribute__ ((packed)); |
128 | typedef struct icr icr_t; |
128 | typedef struct icr icr_t; |
129 | 129 | ||
130 | /* End Of Interrupt */ |
130 | /* End Of Interrupt. */ |
131 | #define EOI (0x0b0/sizeof(__u32)) |
131 | #define EOI (0x0b0/sizeof(__u32)) |
132 | 132 | ||
133 | /** Error Status Register. */ |
133 | /** Error Status Register. */ |
134 | #define ESR (0x280/sizeof(__u32)) |
134 | #define ESR (0x280/sizeof(__u32)) |
135 | union esr { |
135 | union esr { |
Line 249... | Line 249... | ||
249 | __u8 apic_id; /**< Local APIC ID. */ |
249 | __u8 apic_id; /**< Local APIC ID. */ |
250 | } __attribute__ ((packed)); |
250 | } __attribute__ ((packed)); |
251 | }; |
251 | }; |
252 | typedef union l_apic_id l_apic_id_t; |
252 | typedef union l_apic_id l_apic_id_t; |
253 | 253 | ||
254 | /* Local APIC Version Register */ |
254 | /** Local APIC Version Register */ |
255 | #define LAVR (0x030/sizeof(__u32)) |
255 | #define LAVR (0x030/sizeof(__u32)) |
256 | #define LAVR_Mask 0xff |
256 | #define LAVR_Mask 0xff |
257 | #define is_local_apic(x) (((x)&LAVR_Mask&0xf0)==0x1) |
257 | #define is_local_apic(x) (((x)&LAVR_Mask&0xf0)==0x1) |
258 | #define is_82489DX_apic(x) ((((x)&LAVR_Mask&0xf0)==0x0)) |
258 | #define is_82489DX_apic(x) ((((x)&LAVR_Mask&0xf0)==0x0)) |
259 | #define is_local_xapic(x) (((x)&LAVR_Mask)==0x14) |
259 | #define is_local_xapic(x) (((x)&LAVR_Mask)==0x14) |
Line 261... | Line 261... | ||
261 | /** Logical Destination Register. */ |
261 | /** Logical Destination Register. */ |
262 | #define LDR (0x0d0/sizeof(__u32)) |
262 | #define LDR (0x0d0/sizeof(__u32)) |
263 | union ldr { |
263 | union ldr { |
264 | __u32 value; |
264 | __u32 value; |
265 | struct { |
265 | struct { |
266 | unsigned : 24; /**< Reserver. */ |
266 | unsigned : 24; /**< Reserved. */ |
267 | __u8 id; /**< Logical APIC ID. */ |
267 | __u8 id; /**< Logical APIC ID. */ |
268 | } __attribute__ ((packed)); |
268 | } __attribute__ ((packed)); |
269 | }; |
269 | }; |
270 | typedef union ldr ldr_t; |
270 | typedef union ldr ldr_t; |
271 | 271 | ||
Line 317... | Line 317... | ||
317 | }; |
317 | }; |
318 | union { |
318 | union { |
319 | __u32 hi; |
319 | __u32 hi; |
320 | struct { |
320 | struct { |
321 | unsigned : 24; /**< Reserved. */ |
321 | unsigned : 24; /**< Reserved. */ |
322 | __u8 dest : 8; /**< Destination Field. */ |
322 | __u8 dest : 8; /**< Destination Field. */ |
323 | } __attribute__ ((packed)); |
323 | } __attribute__ ((packed)); |
324 | }; |
324 | }; |
325 | 325 | ||
326 | } __attribute__ ((packed)); |
326 | } __attribute__ ((packed)); |
327 | typedef struct io_redirection_reg io_redirection_reg_t; |
327 | typedef struct io_redirection_reg io_redirection_reg_t; |