[warnings] remove some extraneous __PACKED attributes

Also remove a few extra data structures that were marked packed but not
otherwise used anywhere.
This commit is contained in:
Travis Geiselbrecht
2024-04-18 23:51:38 -07:00
parent 6ed6f36fa0
commit 9a4fae0714
5 changed files with 12 additions and 25 deletions

View File

@@ -36,27 +36,6 @@ typedef struct {
bool valid;
} pci_bar_t;
typedef struct {
uint8_t id;
uint8_t next;
} __PACKED pci_capability_t;
typedef struct {
uint8_t bus;
uint8_t device;
uint8_t link_int_a;
uint16_t irq_int_a;
uint8_t link_int_b;
uint16_t irq_int_b;
uint8_t link_int_c;
uint16_t irq_int_c;
uint8_t link_int_d;
uint16_t irq_int_d;
uint8_t slot;
uint8_t reserved;
} __PACKED irq_routing_entry;
// only use one of these two:
// try to detect PCI based on legacy PC PCI accessor methods
status_t pci_init_legacy(void);