Changeset 9149135 in mainline for arch/ia32/include/smp/apic.h


Ignore:
Timestamp:
2005-11-24T18:43:46Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
78c32b4
Parents:
f701b236
Message:

SMP cleanup continued.
Add nice type for IO APIC ID register.
Replace some magic numbers with more descriptive macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/include/smp/apic.h

    rf701b236 r9149135  
    3636#define LOPRI           (1<<0)
    3737
     38#define APIC_ID_COUNT   16
     39
    3840/* local APIC macros */
    3941#define IPI_INIT        0
     
    8688#define TIMER_PERIODIC  0x1
    8789
    88 #define SEND_PENDING    (1<<12)
     90/** Delivery status. */
     91#define DELIVS_IDLE     0x0
     92#define DELIVS_PENDING  0x1
     93
     94/** Destination masks. */
     95#define DEST_ALL        0xff
    8996
    9097/** Interrupt Command Register. */
     
    225232/** Local APIC ID Register. */
    226233#define L_APIC_ID       (0x020/sizeof(__u32))
    227 union lapic_id {
     234union l_apic_id {
    228235        __u32 value;
    229236        struct {
     
    232239        } __attribute__ ((packed));
    233240};
    234 typedef union lapic_id lapic_id_t;
     241typedef union l_apic_id l_apic_id_t;
    235242
    236243/* Local APIC Version Register */
     
    285292       
    286293} __attribute__ ((packed));
    287 
    288294typedef struct io_redirection_reg io_redirection_reg_t;
     295
     296
     297/** IO APIC Identification Register. */
     298union io_apic_id {
     299        __u32 value;
     300        struct {
     301                unsigned : 24;          /**< Reserved. */
     302                unsigned apic_id : 4;   /**< IO APIC ID. */
     303                unsigned : 4;           /**< Reserved. */
     304        } __attribute__ ((packed));
     305};
     306typedef union io_apic_id io_apic_id_t;
    289307
    290308extern volatile __u32 *l_apic;
Note: See TracChangeset for help on using the changeset viewer.