| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pci_configure_bus.9,v 1.15 2010/03/22 18:58:33 joerg Exp $ | | 1 | .\" $NetBSD: pci_configure_bus.9,v 1.16 2012/07/14 05:32:17 rkujawa Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright 2001 Wasabi Systems, Inc. | | 3 | .\" Copyright 2001 Wasabi Systems, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Written by Allen Briggs for Wasabi Systems, Inc. | | 6 | .\" Written by Allen Briggs for Wasabi Systems, Inc. |
7 | .\" | | 7 | .\" |
8 | .\" Redistribution and use in source and binary forms, with or without | | 8 | .\" Redistribution and use in source and binary forms, with or without |
9 | .\" modification, are permitted provided that the following conditions | | 9 | .\" modification, are permitted provided that the following conditions |
10 | .\" are met: | | 10 | .\" are met: |
11 | .\" 1. Redistributions of source code must retain the above copyright | | 11 | .\" 1. Redistributions of source code must retain the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer. | | 12 | .\" notice, this list of conditions and the following disclaimer. |
13 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 13 | .\" 2. Redistributions in binary form must reproduce the above copyright |
14 | .\" notice, this list of conditions and the following disclaimer in the | | 14 | .\" notice, this list of conditions and the following disclaimer in the |
| @@ -247,29 +247,29 @@ pci_conf_interrupt(pci_chipset_tag_t pc, | | | @@ -247,29 +247,29 @@ pci_conf_interrupt(pci_chipset_tag_t pc, |
247 | } | | 247 | } |
248 | .Ed | | 248 | .Ed |
249 | .Pp | | 249 | .Pp |
250 | The BeBox has nearly 1GB of PCI I/O memory starting at processor address | | 250 | The BeBox has nearly 1GB of PCI I/O memory starting at processor address |
251 | 0x81000000 (PCI I/O address 0x01000000), and nearly 1GB of PCI memory | | 251 | 0x81000000 (PCI I/O address 0x01000000), and nearly 1GB of PCI memory |
252 | starting at 0xC0000000 (PCI memory address 0x00000000). | | 252 | starting at 0xC0000000 (PCI memory address 0x00000000). |
253 | The | | 253 | The |
254 | .Fn pci_configure_bus | | 254 | .Fn pci_configure_bus |
255 | function might be called as follows: | | 255 | function might be called as follows: |
256 | .Pp | | 256 | .Pp |
257 | .Bd -literal -compact | | 257 | .Bd -literal -compact |
258 | struct extent *ioext, *memext; | | 258 | struct extent *ioext, *memext; |
259 | ... | | 259 | ... |
260 | ioext = extent_create("pciio", 0x01000000, 0x0fffffff, M_DEVBUF, | | 260 | ioext = extent_create("pciio", 0x01000000, 0x0fffffff, |
261 | NULL, 0, EX_NOWAIT); | | 261 | NULL, 0, EX_NOWAIT); |
262 | memext = extent_create("pcimem", 0x00000000, 0x0fffffff, M_DEVBUF, | | 262 | memext = extent_create("pcimem", 0x00000000, 0x0fffffff, |
263 | NULL, 0, EX_NOWAIT); | | 263 | NULL, 0, EX_NOWAIT); |
264 | ... | | 264 | ... |
265 | pci_configure_bus(0, ioext, memext, NULL); | | 265 | pci_configure_bus(0, ioext, memext, NULL); |
266 | ... | | 266 | ... |
267 | extent_destroy(ioext); | | 267 | extent_destroy(ioext); |
268 | extent_destroy(memext); | | 268 | extent_destroy(memext); |
269 | ... | | 269 | ... |
270 | .Ed | | 270 | .Ed |
271 | .Pp | | 271 | .Pp |
272 | Note that this must be called before the PCI bus is attached during | | 272 | Note that this must be called before the PCI bus is attached during |
273 | autoconfiguration. | | 273 | autoconfiguration. |
274 | .Sh SEE ALSO | | 274 | .Sh SEE ALSO |
275 | .Xr pci 4 , | | 275 | .Xr pci 4 , |