update brcm-2.4 to 2.4.35.4, integrate new broadcom system code, update broadcom...
[openwrt/svn-archive/archive.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / include / hndpci.h
1 /*
2 * HND SiliconBackplane PCI core software interface.
3 *
4 * $Id$
5 * Copyright 2007, 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.
12 */
13
14 #ifndef _hndpci_h_
15 #define _hndpci_h_
16
17 extern int sbpci_read_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf,
18 int len);
19 extern int extpci_read_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf,
20 int len);
21 extern int sbpci_write_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf,
22 int len);
23 extern int extpci_write_config(sb_t *sbh, uint bus, uint dev, uint func, uint off, void *buf,
24 int len);
25 extern void sbpci_ban(uint16 core);
26 extern int sbpci_init(sb_t *sbh);
27 extern int sbpci_init_pci(sb_t *sbh);
28 extern void sbpci_init_cores(sb_t *sbh);
29 extern void sbpci_arb_park(sb_t *sbh, uint parkid);
30
31 #define PCI_PARK_NVRAM 0xff
32
33 #endif /* _hndpci_h_ */