| 1 | /* |
| 2 | * HND SiliconBackplane PCI core software interface. |
| 3 | * |
| 4 | * Copyright 2007, Broadcom Corporation |
| 5 | * All Rights Reserved. |
| 6 | * |
| 7 | * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY |
| 8 | * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM |
| 9 | * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS |
| 10 | * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. |
| 11 | */ |
| 12 | |
| 13 | #ifndef _hndpci_h_ |
| 14 | #define _hndpci_h_ |
| 15 | |
| 16 | extern int sbpci_read_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf, |
| 17 | int len); |
| 18 | extern int extpci_read_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf, |
| 19 | int len); |
| 20 | extern int sbpci_write_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf, |
| 21 | int len); |
| 22 | extern int extpci_write_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf, |
| 23 | int len); |
| 24 | extern void sbpci_ban(uint16 core); |
| 25 | extern int sbpci_init(sb_t *sbh); |
| 26 | extern int sbpci_init_pci(sb_t *sbh); |
| 27 | extern void sbpci_init_cores(sb_t *sbh); |
| 28 | extern void sbpci_arb_park(sb_t *sbh, uint parkid); |
| 29 | |
| 30 | #define PCI_PARK_NVRAM 0xff |
| 31 | |
| 32 | #endif /* _hndpci_h_ */ |
| 33 | |