ofw_pci.h (86231) | ofw_pci.h (93067) |
---|---|
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 86231 2001-11-09 20:19:58Z tmm $ | 31 * $FreeBSD: head/sys/sparc64/pci/ofw_pci.h 93067 2002-03-24 02:11:06Z 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 |
59int ofw_pci_find_imap(phandle_t, struct ofw_pci_imap **, 60 struct ofw_pci_imap_msk *); 61int ofw_pci_route_intr2(int, struct ofw_pci_register *, 62 struct ofw_pci_imap *, int, struct ofw_pci_imap_msk *); 63int ofw_pci_route_intr(phandle_t, struct ofw_pci_register *, 64 struct ofw_pci_imap *, int, struct ofw_pci_imap_msk *); 65void ofw_pci_init_intr(device_t, phandle_t, struct ofw_pci_imap *, int, 66 struct ofw_pci_imap_msk *); | 59u_int32_t ofw_pci_route_intr(phandle_t); 60void ofw_pci_init_intr(device_t, phandle_t); |
67phandle_t ofw_pci_find_node(int, int, int); | 61phandle_t ofw_pci_find_node(int, int, int); |
68int ofw_pci_dev_iterate_node(device_t, phandle_t, uintptr_t *, int, int *, 69 int *, uintptr_t *, uintptr_t *); 70int ofw_pci_dev_iterate(device_t, uintptr_t *, int, int *, int *, uintptr_t *, 71 uintptr_t *); | 62phandle_t ofw_pci_node(device_t); |
72 73#endif /* ! _SPARC64_PCI_OFW_PCI_H_ */ | 63 64#endif /* ! _SPARC64_PCI_OFW_PCI_H_ */ |