| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: mppb.c,v 1.5 2012/01/19 00:14:08 rkujawa Exp $ */ | | 1 | /* $NetBSD: mppb.c,v 1.6 2012/01/29 15:32:52 para Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2011 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2011 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Radoslaw Kujawa. | | 8 | * by Radoslaw Kujawa. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -158,29 +158,29 @@ mppb_attach(device_t parent, device_t se | | | @@ -158,29 +158,29 @@ mppb_attach(device_t parent, device_t se |
158 | sc->apc.pc_conf_write = mppb_pci_conf_write; | | 158 | sc->apc.pc_conf_write = mppb_pci_conf_write; |
159 | sc->apc.pc_attach_hook = mppb_pci_attach_hook; | | 159 | sc->apc.pc_attach_hook = mppb_pci_attach_hook; |
160 | | | 160 | |
161 | sc->apc.pc_intr_map = mppb_pci_intr_map; | | 161 | sc->apc.pc_intr_map = mppb_pci_intr_map; |
162 | sc->apc.pc_intr_string = amiga_pci_intr_string; | | 162 | sc->apc.pc_intr_string = amiga_pci_intr_string; |
163 | sc->apc.pc_intr_establish = amiga_pci_intr_establish; | | 163 | sc->apc.pc_intr_establish = amiga_pci_intr_establish; |
164 | sc->apc.pc_intr_disestablish = amiga_pci_intr_disestablish; | | 164 | sc->apc.pc_intr_disestablish = amiga_pci_intr_disestablish; |
165 | | | 165 | |
166 | sc->apc.pc_conf_hook = amiga_pci_conf_hook; | | 166 | sc->apc.pc_conf_hook = amiga_pci_conf_hook; |
167 | sc->apc.pc_conf_interrupt = amiga_pci_conf_interrupt; | | 167 | sc->apc.pc_conf_interrupt = amiga_pci_conf_interrupt; |
168 | | | 168 | |
169 | #ifdef PCI_NETBSD_CONFIGURE | | 169 | #ifdef PCI_NETBSD_CONFIGURE |
170 | ioext = extent_create("mppbio", MPPB_IO_BASE, | | 170 | ioext = extent_create("mppbio", MPPB_IO_BASE, |
171 | MPPB_IO_BASE + MPPB_IO_SIZE, M_DEVBUF, NULL, 0, EX_NOWAIT); | | 171 | MPPB_IO_BASE + MPPB_IO_SIZE, NULL, 0, EX_NOWAIT); |
172 | memext = extent_create("mppbmem", MPPB_MEM_BASE, | | 172 | memext = extent_create("mppbmem", MPPB_MEM_BASE, |
173 | MPPB_MEM_BASE + MPPB_MEM_SIZE, M_DEVBUF, NULL, 0, EX_NOWAIT); | | 173 | MPPB_MEM_BASE + MPPB_MEM_SIZE, NULL, 0, EX_NOWAIT); |
174 | | | 174 | |
175 | #ifdef MPPB_DEBUG | | 175 | #ifdef MPPB_DEBUG |
176 | aprint_normal("mppb: reconfiguring the bus!\n"); | | 176 | aprint_normal("mppb: reconfiguring the bus!\n"); |
177 | #endif /* MPPB_DEBUG */ | | 177 | #endif /* MPPB_DEBUG */ |
178 | pci_configure_bus(pc, ioext, memext, NULL, 0, CACHELINE_SIZE); | | 178 | pci_configure_bus(pc, ioext, memext, NULL, 0, CACHELINE_SIZE); |
179 | | | 179 | |
180 | extent_destroy(ioext); | | 180 | extent_destroy(ioext); |
181 | extent_destroy(memext); | | 181 | extent_destroy(memext); |
182 | #endif /* PCI_NETBSD_CONFIGURE */ | | 182 | #endif /* PCI_NETBSD_CONFIGURE */ |
183 | | | 183 | |
184 | pba.pba_iot = &(sc->pci_io_area); | | 184 | pba.pba_iot = &(sc->pci_io_area); |
185 | pba.pba_memt = &(sc->pci_mem_area); | | 185 | pba.pba_memt = &(sc->pci_mem_area); |
186 | pba.pba_dmat = NULL; | | 186 | pba.pba_dmat = NULL; |