Deleted Added
full compact
ofw_pci.h (93067) ofw_pci.h (98148)
1/*
2 * Copyright (c) 1999, 2000 Matthew R. Green
3 * All rights reserved.
4 * Copyright 2001 by Thomas Moestl <tmm@FreeBSD.org>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: NetBSD: psychoreg.h,v 1.8 2001/09/10 16:17:06 eeh Exp
30 *
1/*
2 * Copyright (c) 1999, 2000 Matthew R. Green
3 * All rights reserved.
4 * Copyright 2001 by Thomas Moestl <tmm@FreeBSD.org>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * from: NetBSD: psychoreg.h,v 1.8 2001/09/10 16:17:06 eeh Exp
30 *
31 * $FreeBSD: head/sys/sparc64/pci/ofw_pci.h 93067 2002-03-24 02:11:06Z tmm $
31 * $FreeBSD: head/sys/sparc64/pci/ofw_pci.h 98148 2002-06-12 19:20:57Z tmm $
32 */
33
34#ifndef _SPARC64_PCI_OFW_PCI_H_
35#define _SPARC64_PCI_OFW_PCI_H_
36
37/* PCI range child spaces. XXX: are these MI? */
38#define PCI_CS_CONFIG 0x00
39#define PCI_CS_IO 0x01

--- 11 unchanged lines hidden (view full) ---

51
52struct ofw_pci_imap_msk {
53 u_int32_t phys_hi;
54 u_int32_t phys_mid;
55 u_int32_t phys_lo;
56 u_int32_t intr;
57};
58
32 */
33
34#ifndef _SPARC64_PCI_OFW_PCI_H_
35#define _SPARC64_PCI_OFW_PCI_H_
36
37/* PCI range child spaces. XXX: are these MI? */
38#define PCI_CS_CONFIG 0x00
39#define PCI_CS_IO 0x01

--- 11 unchanged lines hidden (view full) ---

51
52struct ofw_pci_imap_msk {
53 u_int32_t phys_hi;
54 u_int32_t phys_mid;
55 u_int32_t phys_lo;
56 u_int32_t intr;
57};
58
59struct ofw_pci_bdesc;
60typedef void ofw_pci_binit_t(device_t, struct ofw_pci_bdesc *);
61
62struct ofw_pci_bdesc {
63 u_int obd_bus;
64 u_int obd_slot;
65 u_int obd_func;
66 u_int obd_secbus;
67 u_int obd_subbus;
68 ofw_pci_binit_t *obd_init;
69 struct ofw_pci_bdesc *obd_super;
70};
71
59u_int32_t ofw_pci_route_intr(phandle_t);
72u_int32_t ofw_pci_route_intr(phandle_t);
60void ofw_pci_init_intr(device_t, phandle_t);
73u_int8_t ofw_pci_alloc_busno(phandle_t);
74ofw_pci_binit_t ofw_pci_binit;
75void ofw_pci_init(device_t, phandle_t, struct ofw_pci_bdesc *);
61phandle_t ofw_pci_find_node(int, int, int);
62phandle_t ofw_pci_node(device_t);
63
64#endif /* ! _SPARC64_PCI_OFW_PCI_H_ */
76phandle_t ofw_pci_find_node(int, int, int);
77phandle_t ofw_pci_node(device_t);
78
79#endif /* ! _SPARC64_PCI_OFW_PCI_H_ */