aboutsummaryrefslogtreecommitdiff
path: root/hdata/iohub.c
AgeCommit message (Collapse)AuthorFilesLines
2015-11-18Remove missed bit of p5ioc codeStewart Smith1-52/+0
Probably due to bad merge by me Fixes: 0baf63f38757 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-11-18Drop support for p5ioc2Daniel Axtens1-214/+0
p5ioc2 is used by approximately 2 machines in the world, and has never ever been a supported configuration. Not only is the code virtually unused and very tricky to test, but keeping it around is making life unnecessarily difficult: - It's more complexity to manage for things such as PCI slot support - It's more code for static analysis to cover, which means more time fixing bugs that affect no-one. - It's bloating every single install of skiboot for no benefit. - It's reducing coverage stats, which is sad. Drop p5ioc2. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-11-16Enable -Werror for -WformatStewart Smith1-10/+11
We create our own inttypes.h to get the correct printf formatting for 64bit numbers. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-11-10sparse: fix beintXX_t degrades to integer warnings in hdata/iohub.cStewart Smith1-8/+8
No generated code change due to skiboot being BE hdata/iohub.c:49:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:49:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:49:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:49:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:51:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:51:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:51:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:51:9: warning: restricted beint64_t degrades to integer hdata/iohub.c:209:16: warning: restricted beint32_t degrades to integer hdata/iohub.c:356:19: warning: restricted beint32_t degrades to integer hdata/iohub.c:490:19: warning: restricted beint32_t degrades to integer hdata/iohub.c:536:21: warning: restricted beint64_t degrades to integer hdata/iohub.c:554:9: warning: restricted beint32_t degrades to integer hdata/iohub.c:554:9: warning: restricted beint32_t degrades to integer Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-11-09sparse: fix endian conversions in hdata/iohub.cStewart Smith1-7/+7
Since skiboot is all BE and hdat is BE, this changes nothing except for silencing the sparse warnings hdata/iohub.c:35:9: warning: incorrect type in initializer (different base types) hdata/iohub.c:35:9: expected unsigned int hdata/iohub.c:35:9: got restricted beint32_t const [usertype] buid_ext hdata/iohub.c:36:9: warning: incorrect type in argument 1 (different base types) hdata/iohub.c:36:9: expected unsigned int [unsigned] [usertype] proc_chip_id hdata/iohub.c:36:9: got restricted beint32_t const [usertype] proc_chip_id hdata/iohub.c:36:9: warning: incorrect type in argument 1 (different base types) hdata/iohub.c:36:9: expected unsigned int [unsigned] [usertype] proc_chip_id hdata/iohub.c:36:9: got restricted beint32_t const [usertype] proc_chip_id hdata/iohub.c:38:9: warning: incorrect type in initializer (different base types) hdata/iohub.c:38:9: expected unsigned int hdata/iohub.c:38:9: got restricted beint32_t const [usertype] gx_index hdata/iohub.c:39:9: warning: incorrect type in initializer (different base types) hdata/iohub.c:39:9: expected unsigned int hdata/iohub.c:39:9: got restricted beint32_t const [usertype] ec_level hdata/iohub.c:114:63: warning: incorrect type in argument 1 (different base types) hdata/iohub.c:114:63: expected unsigned short [unsigned] [usertype] slca_index hdata/iohub.c:114:63: got restricted beint16_t const [usertype] slca_index hdata/iohub.c:634:17: warning: incorrect type in argument 1 (different base types) hdata/iohub.c:634:17: expected restricted beint32_t [usertype] be_val hdata/iohub.c:634:17: got restricted beint16_t const [usertype] hub_num hdata/iohub.c:708:22: warning: incorrect type in assignment (different base types) hdata/iohub.c:708:22: expected unsigned int [unsigned] type hdata/iohub.c:708:22: got restricted beint32_t const [usertype] card_type Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-11-05hdat: Add Venice hub ID to HDAT conversionBenjamin Herrenschmidt1-5/+9
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-10-15Rework hdata/iohub.c CEC log messages to appropriate log levelsStewart Smith1-54/+69
We're mostly PR_DEBUG here, except for the basics, which are PR_INFO. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+715
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>