2001-05-14 00:52:33 +02:00
|
|
|
|
.\" -*- nroff -*-
|
|
|
|
|
.\"
|
|
|
|
|
.\" Copyright (c) 2000 Alexander Langer
|
|
|
|
|
.\"
|
|
|
|
|
.\" All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.\" This program is free software.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
|
.\" are met:
|
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
|
.\"
|
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
|
.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
|
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
.\"
|
2004-09-21 23:00:59 +02:00
|
|
|
|
.\" %FreeBSD: src/share/man/man9/bus_release_resource.9,v 1.9 2004/07/03 18:29:23 ru Exp %
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.\"
|
2001-12-23 01:24:24 +01:00
|
|
|
|
.\" $FreeBSD$
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Dd May 18, 2000
|
|
|
|
|
.Dt BUS_RELEASE_RESOURCE 9
|
2001-08-19 01:50:59 +02:00
|
|
|
|
.Os
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Sh ̾<EFBFBD><EFBFBD>
|
|
|
|
|
.Nm bus_release_resource
|
2002-08-29 04:20:53 +02:00
|
|
|
|
.Nd <EFBFBD>Х<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λβ<EFBFBD><EFBFBD><EFBFBD>
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2001-12-23 01:24:24 +01:00
|
|
|
|
.In sys/param.h
|
|
|
|
|
.In sys/bus.h
|
2001-07-12 02:16:04 +02:00
|
|
|
|
.Pp
|
2001-12-23 01:24:24 +01:00
|
|
|
|
.In machine/bus.h
|
|
|
|
|
.In sys/rman.h
|
|
|
|
|
.In machine/resource.h
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Ft int
|
|
|
|
|
.Fn bus_release_resource "device_t dev" "int type" "int rid" "struct resource *r"
|
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Xr bus_alloc_resource 9
|
2002-08-29 04:20:53 +02:00
|
|
|
|
<EFBFBD>ˤ<EFBFBD><EFBFBD>äƳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EF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BFBD><EFBFBD>ϥѥ˥å<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>礦<EFBFBD><EFBFBD>
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.Bd -literal
|
|
|
|
|
/* IRQ <20><><EFBFBD>Գ<EFBFBD><D4B3><EFBFBD><EFBFBD><EFBFBD> */
|
2001-07-23 04:27:01 +02:00
|
|
|
|
bus_teardown_intr(dev, foosoftc->irqres, foosoftc->irqid);
|
2001-05-14 00:52:33 +02:00
|
|
|
|
|
2002-08-29 04:20:53 +02:00
|
|
|
|
/* IRQ <20>β<F1B8BBA4><CEB2><EFBFBD> */
|
2001-05-14 00:52:33 +02:00
|
|
|
|
bus_release_resource(dev, SYS_RES_IRQ, foosoftc->irqid,
|
|
|
|
|
foosoftc->irqres);
|
|
|
|
|
|
2002-08-29 04:20:53 +02:00
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD>ϥݡ<CFA5><DDA1>Ȥλβ<F1B8BBA4><CEB2><EFBFBD> */
|
2001-05-14 00:52:33 +02:00
|
|
|
|
bus_release_resource(dev, SYS_RES_IOPORT, foosoftc->portid,
|
|
|
|
|
foosoftc->portres);
|
|
|
|
|
.Ed
|
|
|
|
|
.Sh <EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2001-08-19 01:50:59 +02:00
|
|
|
|
.Xr bus_alloc_resource 9 ,
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Xr device 9 ,
|
2001-08-19 01:50:59 +02:00
|
|
|
|
.Xr driver 9
|
2001-05-14 00:52:33 +02:00
|
|
|
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>Υޥ˥奢<EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.An Alexander Langer Aq alex@big.endian.de
|
|
|
|
|
<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|