diff options
author | Warner Losh <imp@FreeBSD.org> | 2004-01-27 16:16:31 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2004-01-27 16:16:31 +0000 |
commit | ab27179eb903d657c791211390ab15fb3f4e1681 (patch) | |
tree | 96c138438751fec454b71e3361c4151a4dda4ef3 /share/man/man9/bus_alloc_resource.9 | |
parent | 84344f9fbf49939f0541019fc589e669a839b99e (diff) | |
download | src-ab27179eb903d657c791211390ab15fb3f4e1681.tar.gz src-ab27179eb903d657c791211390ab15fb3f4e1681.zip |
Fix the example back the way it was. Fix the commentary to say it
allocates a 32 byte range of ioports.
Notes
Notes:
svn path=/head/; revision=125096
Diffstat (limited to 'share/man/man9/bus_alloc_resource.9')
-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 b086caf3762a..9bb9c8832226 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 |