2 .\" Copyright (c) 2004, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DDI_REGS_MAP_FREE 9F "Nov 18, 2004"
8 ddi_regs_map_free \- free a previously mapped register address space
13 #include <sys/sunddi.h>
17 \fBvoid\fR \fBddi_regs_map_free\fR(\fBddi_acc_handle_t\fR \fI*handle\fR);
23 Solaris \fBDDI\fR specific (Solaris \fBDDI\fR).
31 Pointer to a data access handle previously allocated by a call to a setup
32 routine such as \fBddi_regs_map_setup\fR(9F).
38 \fBddi_regs_map_free()\fR frees the mapping represented by the data access
39 handle \fIhandle\fR. This function is provided for drivers preparing to detach
40 themselves from the system, allowing them to release allocated system resources
41 represented in the handle.
45 \fBddi_regs_map_free()\fR must be called from user or kernel context.
49 See \fBattributes\fR(5) for descriptions of the following attributes:
57 ATTRIBUTE TYPE ATTRIBUTE VALUE
59 Architecture PCI Local Bus, SBus, ISA
65 \fBattributes\fR(5), \fBddi_regs_map_setup\fR(9F)
68 \fIWriting Device Drivers\fR