Changeset f4c2b6a in mainline for kernel/arch/ia32/include/smp/apic.h
- Timestamp:
- 2008-06-03T14:59:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4fb51
- Parents:
- b63f8569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/smp/apic.h
rb63f8569 rf4c2b6a 106 106 107 107 /** Interrupt Command Register. */ 108 #define ICRlo (0x300 /sizeof(uint32_t))109 #define ICRhi (0x310 /sizeof(uint32_t))108 #define ICRlo (0x300 / sizeof(uint32_t)) 109 #define ICRhi (0x310 / sizeof(uint32_t)) 110 110 typedef struct { 111 111 union { … … 134 134 135 135 /* End Of Interrupt. */ 136 #define EOI (0x0b0 /sizeof(uint32_t))136 #define EOI (0x0b0 / sizeof(uint32_t)) 137 137 138 138 /** Error Status Register. */ 139 #define ESR (0x280 /sizeof(uint32_t))139 #define ESR (0x280 / sizeof(uint32_t)) 140 140 typedef union { 141 141 uint32_t value; … … 155 155 156 156 /* Task Priority Register */ 157 #define TPR (0x080 /sizeof(uint32_t))157 #define TPR (0x080 / sizeof(uint32_t)) 158 158 typedef union { 159 159 uint32_t value; … … 165 165 166 166 /** Spurious-Interrupt Vector Register. */ 167 #define SVR (0x0f0 /sizeof(uint32_t))167 #define SVR (0x0f0 / sizeof(uint32_t)) 168 168 typedef union { 169 169 uint32_t value; … … 177 177 178 178 /** Time Divide Configuration Register. */ 179 #define TDCR (0x3e0 /sizeof(uint32_t))179 #define TDCR (0x3e0 / sizeof(uint32_t)) 180 180 typedef union { 181 181 uint32_t value; … … 187 187 188 188 /* Initial Count Register for Timer */ 189 #define ICRT (0x380 /sizeof(uint32_t))189 #define ICRT (0x380 / sizeof(uint32_t)) 190 190 191 191 /* Current Count Register for Timer */ 192 #define CCRT (0x390 /sizeof(uint32_t))192 #define CCRT (0x390 / sizeof(uint32_t)) 193 193 194 194 /** LVT Timer register. */ 195 #define LVT_Tm (0x320 /sizeof(uint32_t))195 #define LVT_Tm (0x320 / sizeof(uint32_t)) 196 196 typedef union { 197 197 uint32_t value; … … 208 208 209 209 /** LVT LINT registers. */ 210 #define LVT_LINT0 (0x350 /sizeof(uint32_t))211 #define LVT_LINT1 (0x360 /sizeof(uint32_t))210 #define LVT_LINT0 (0x350 / sizeof(uint32_t)) 211 #define LVT_LINT1 (0x360 / sizeof(uint32_t)) 212 212 typedef union { 213 213 uint32_t value; … … 226 226 227 227 /** LVT Error register. */ 228 #define LVT_Err (0x370 /sizeof(uint32_t))228 #define LVT_Err (0x370 / sizeof(uint32_t)) 229 229 typedef union { 230 230 uint32_t value; … … 240 240 241 241 /** Local APIC ID Register. */ 242 #define L_APIC_ID (0x020 /sizeof(uint32_t))242 #define L_APIC_ID (0x020 / sizeof(uint32_t)) 243 243 typedef union { 244 244 uint32_t value; … … 250 250 251 251 /** Local APIC Version Register */ 252 #define LAVR (0x030 /sizeof(uint32_t))252 #define LAVR (0x030 / sizeof(uint32_t)) 253 253 #define LAVR_Mask 0xff 254 #define is_local_apic(x) (((x) &LAVR_Mask&0xf0)==0x1)255 #define is_82489DX_apic(x) ((((x) &LAVR_Mask&0xf0)==0x0))256 #define is_local_xapic(x) (((x) &LAVR_Mask)==0x14)254 #define is_local_apic(x) (((x) & LAVR_Mask & 0xf0) == 0x1) 255 #define is_82489DX_apic(x) ((((x) & LAVR_Mask & 0xf0) == 0x0)) 256 #define is_local_xapic(x) (((x) & LAVR_Mask) == 0x14) 257 257 258 258 /** Logical Destination Register. */ 259 #define LDR (0x0d0 /sizeof(uint32_t))259 #define LDR (0x0d0 / sizeof(uint32_t)) 260 260 typedef union { 261 261 uint32_t value; … … 267 267 268 268 /** Destination Format Register. */ 269 #define DFR (0x0e0 /sizeof(uint32_t))269 #define DFR (0x0e0 / sizeof(uint32_t)) 270 270 typedef union { 271 271 uint32_t value; … … 277 277 278 278 /* IO APIC */ 279 #define IOREGSEL (0x00 /sizeof(uint32_t))280 #define IOWIN (0x10 /sizeof(uint32_t))279 #define IOREGSEL (0x00 / sizeof(uint32_t)) 280 #define IOWIN (0x10 / sizeof(uint32_t)) 281 281 282 282 #define IOAPICID 0x00
Note:
See TracChangeset
for help on using the changeset viewer.