| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pcmcia.9,v 1.16 2008/04/30 13:10:58 martin Exp $ | | 1 | .\" $NetBSD: pcmcia.9,v 1.17 2009/03/12 12:49:36 joerg Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2001 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2001 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Gregory McGarry. | | 7 | .\" by Gregory McGarry. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -237,27 +237,27 @@ Map device I/O for device function | | | @@ -237,27 +237,27 @@ Map device I/O for device function |
237 | to the I/O space with handle | | 237 | to the I/O space with handle |
238 | .Fa pcihp . | | 238 | .Fa pcihp . |
239 | The width of data access is specified by | | 239 | The width of data access is specified by |
240 | .Fa width . | | 240 | .Fa width . |
241 | Valid values for the width are: | | 241 | Valid values for the width are: |
242 | .Bl -tag -width PCMCIA_WIDTH_AUTO | | 242 | .Bl -tag -width PCMCIA_WIDTH_AUTO |
243 | .It PCMCIA_WIDTH_AUTO | | 243 | .It PCMCIA_WIDTH_AUTO |
244 | Use the largest I/O width reported by the device. | | 244 | Use the largest I/O width reported by the device. |
245 | .It PCMCIA_WIDTH_IO8 | | 245 | .It PCMCIA_WIDTH_IO8 |
246 | Force 8-bit I/O width. | | 246 | Force 8-bit I/O width. |
247 | .It PCMCIA_WIDTH_IO16 | | 247 | .It PCMCIA_WIDTH_IO16 |
248 | Force 16-bit I/O width. | | 248 | Force 16-bit I/O width. |
249 | .El | | 249 | .El |
250 | .sp | | 250 | .Pp |
251 | A handle for the mapped I/O window is returned in | | 251 | A handle for the mapped I/O window is returned in |
252 | .Fa windowp . | | 252 | .Fa windowp . |
253 | .It Fn pcmcia_io_unmap "pf" "window" | | 253 | .It Fn pcmcia_io_unmap "pf" "window" |
254 | Unmap the I/O window | | 254 | Unmap the I/O window |
255 | .Fa window | | 255 | .Fa window |
256 | for device function | | 256 | for device function |
257 | .Fa pf . | | 257 | .Fa pf . |
258 | .It Fn pcmcia_mem_alloc "pf" "size" "pcmhp" | | 258 | .It Fn pcmcia_mem_alloc "pf" "size" "pcmhp" |
259 | Request memory space for device function | | 259 | Request memory space for device function |
260 | .Fa pf | | 260 | .Fa pf |
261 | of size | | 261 | of size |
262 | .Fa size . | | 262 | .Fa size . |
263 | A handle for the memory space is returned in | | 263 | A handle for the memory space is returned in |
| @@ -276,27 +276,27 @@ to the memory space with handle | | | @@ -276,27 +276,27 @@ to the memory space with handle |
276 | The address of the device memory starts at | | 276 | The address of the device memory starts at |
277 | .Fa card_addr | | 277 | .Fa card_addr |
278 | and is size | | 278 | and is size |
279 | .Fa size . | | 279 | .Fa size . |
280 | The width of data access is specified by | | 280 | The width of data access is specified by |
281 | .Fa width . | | 281 | .Fa width . |
282 | Valid values for the width are: | | 282 | Valid values for the width are: |
283 | .Bl -tag -width PCMCIA_WIDTH_MEM16 | | 283 | .Bl -tag -width PCMCIA_WIDTH_MEM16 |
284 | .It PCMCIA_WIDTH_MEM8 | | 284 | .It PCMCIA_WIDTH_MEM8 |
285 | Force 8-bit memory width. | | 285 | Force 8-bit memory width. |
286 | .It PCMCIA_WIDTH_MEM16 | | 286 | .It PCMCIA_WIDTH_MEM16 |
287 | Force 16-bit memory width. | | 287 | Force 16-bit memory width. |
288 | .El | | 288 | .El |
289 | .sp | | 289 | .Pp |
290 | A handle for the mapped memory window is returned in | | 290 | A handle for the mapped memory window is returned in |
291 | .Fa windowp | | 291 | .Fa windowp |
292 | and a bus-space offset into the memory window is returned in | | 292 | and a bus-space offset into the memory window is returned in |
293 | .Fa offsetp . | | 293 | .Fa offsetp . |
294 | .It Fn pcmcia_mem_unmap "pf" "window" | | 294 | .It Fn pcmcia_mem_unmap "pf" "window" |
295 | Unmap the memory window | | 295 | Unmap the memory window |
296 | .Fa window | | 296 | .Fa window |
297 | for device function | | 297 | for device function |
298 | .Fa pf . | | 298 | .Fa pf . |
299 | .It Fn pcmcia_intr_establish "pf" "level" "handler" "arg" | | 299 | .It Fn pcmcia_intr_establish "pf" "level" "handler" "arg" |
300 | Establish an interrupt handler for device function | | 300 | Establish an interrupt handler for device function |
301 | .Fa pf . | | 301 | .Fa pf . |
302 | The priority of the interrupt is specified by | | 302 | The priority of the interrupt is specified by |