aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-08-20 11:29:26 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-01 16:10:40 +1000
commit7df64e132bdb0a87a92b3edb1edae6b50198828e (patch)
tree919f331544f5e35de7ce18f142d1cc13fb1527a1 /include/pci.h
parent6d511c11ecbbaba062ec97ab4853549b3b5fb820 (diff)
downloadskiboot-7df64e132bdb0a87a92b3edb1edae6b50198828e.zip
skiboot-7df64e132bdb0a87a92b3edb1edae6b50198828e.tar.gz
skiboot-7df64e132bdb0a87a92b3edb1edae6b50198828e.tar.bz2
pci/fsp: Cleanup slot_info
This moves some fields that are specific to the LXVPD mechanism out of the generic pci_slot_info into a private wrapper. Additionally, most fields in pci_slot_info are made signed integers in order to allow them to be set to "-1" which indicates that the field doesn't have a meaningful value, and inhibits creation of the corresponding device-tree property. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/include/pci.h b/include/pci.h
index 6b3a228..2385163 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -77,20 +77,17 @@
/* PCI Slot Entry Information */
struct pci_slot_info {
- uint8_t switch_id;
- uint8_t vswitch_id;
- uint8_t dev_id;
- char label[9];
+ char label[16];
bool pluggable;
bool power_ctl;
- uint8_t wired_lanes;
- uint8_t bus_clock;
- uint8_t connector_type;
- uint8_t card_desc;
- uint8_t card_mech;
- uint8_t pwr_led_ctl;
- uint8_t attn_led_ctl;
- uint8_t slot_index;
+ int wired_lanes;
+ int bus_clock;
+ int connector_type;
+ int card_desc;
+ int card_mech;
+ int pwr_led_ctl;
+ int attn_led_ctl;
+ int slot_index;
};
/*