Broadcom SDK and wireless driver: another attempt to update to ver. 5.10.147.0
[tomato.git] / release / src-rt / include / hndpci.h
blob017d472ad92323d6e20cf74dc2e210f3c2e61bf7
1 /*
2 * HND SiliconBackplane PCI core software interface.
4 * $Id: hndpci.h,v 13.8.2.1 2008/10/13 15:51:38 Exp $
5 * Copyright (C) 2009, Broadcom Corporation
6 * All Rights Reserved.
7 *
8 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
9 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
10 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
11 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
14 #ifndef _hndpci_h_
15 #define _hndpci_h_
17 extern int hndpci_read_config(si_t *sih, uint bus, uint dev, uint func, uint off, void *buf,
18 int len);
19 extern int extpci_read_config(si_t *sih, uint bus, uint dev, uint func, uint off, void *buf,
20 int len);
21 extern int hndpci_write_config(si_t *sih, uint bus, uint dev, uint func, uint off, void *buf,
22 int len);
23 extern int extpci_write_config(si_t *sih, uint bus, uint dev, uint func, uint off, void *buf,
24 int len);
25 extern void hndpci_ban(uint16 core);
26 extern int hndpci_init(si_t *sih);
27 extern int hndpci_init_pci(si_t *sih);
28 extern void hndpci_init_cores(si_t *sih);
29 extern void hndpci_arb_park(si_t *sih, uint parkid);
30 extern uint8 hndpci_find_pci_capability(si_t *sih, uint bus, uint dev, uint func,
31 uint8 req_cap_id, uchar *buf, uint32 *buflen);
33 #define PCI_PARK_NVRAM 0xff
35 #endif /* _hndpci_h_ */