diff options
author | imp <imp@FreeBSD.org> | 2004-01-27 16:16:31 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-01-27 16:16:31 +0000 |
commit | f08bacde3cfee8467b7497db882a6839892a0855 (patch) | |
tree | 96c138438751fec454b71e3361c4151a4dda4ef3 /share/man | |
parent | 8b1373b33e38c4dc3c45820ed545b32ab925a42f (diff) | |
download | FreeBSD-src-f08bacde3cfee8467b7497db882a6839892a0855.zip FreeBSD-src-f08bacde3cfee8467b7497db882a6839892a0855.tar.gz |
Fix the example back the way it was. Fix the commentary to say it
allocates a 32 byte range of ioports.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/bus_alloc_resource.9 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/bus_alloc_resource.9 b/share/man/man9/bus_alloc_resource.9 index b086caf..9bb9c88 100644 --- a/share/man/man9/bus_alloc_resource.9 +++ b/share/man/man9/bus_alloc_resource.9 @@ -136,7 +136,7 @@ A pointer to .Va struct res is returned on success, a null pointer otherwise. .Sh EXAMPLES -This is some example code that allocates a 32-bit I/O port and an IRQ. +This is some example code that allocates a 32 byte I/O port range and an IRQ. The values of .Va portid and @@ -149,7 +149,7 @@ should be saved in the softc of the device after these calls. portid = 0; irqid = 0; portres = bus_alloc_resource(dev, SYS_RES_IOPORT, &portid, - 0ul, ~0ul, 4, RF_ACTIVE); + 0ul, ~0ul, 32, RF_ACTIVE); irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid, 0ul, ~0ul, 1, RF_ACTIVE | RF_SHAREABLE); .Ed |