diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2018-08-21 14:37:50 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-09-13 15:19:36 +1000 |
commit | c07958783dbcf0b5f923fddb9f696be8e5ea3dae (patch) | |
tree | cdf7fdb14f77a61bf14fc07863f6f0861865b2a0 /platforms | |
parent | d76e4fb2665b99e28722e98779b88cc2892ee481 (diff) | |
download | skiboot-c07958783dbcf0b5f923fddb9f696be8e5ea3dae.zip skiboot-c07958783dbcf0b5f923fddb9f696be8e5ea3dae.tar.gz skiboot-c07958783dbcf0b5f923fddb9f696be8e5ea3dae.tar.bz2 |
astbmc/slots: Add SW_PLUGGABLE() macro
Add a macro to help with defining ports that are under a switch. This is
different to the existing ST_PLUGGABLE() macro in that it can be used to
define a slot inside a slot_table_entry array.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/astbmc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platforms/astbmc/astbmc.h b/platforms/astbmc/astbmc.h index fc53d1a..f8548c5 100644 --- a/platforms/astbmc/astbmc.h +++ b/platforms/astbmc/astbmc.h @@ -79,6 +79,14 @@ static struct slot_table_entry st_name[] = \ { .etype = st_end }, \ } +#define SW_PLUGGABLE(slot_name, port, ...) \ +{ \ + .etype = st_pluggable_slot, \ + .name = slot_name, \ + .location = ST_LOC_DEVFN(port, 0), \ + ##__VA_ARGS__ \ +} + extern const struct bmc_platform astbmc_ami; extern const struct bmc_platform astbmc_openbmc; |