Use more markup. New sentence, new line. Remove trailing whitespace.
This commit is contained in:
parent
8181a73d98
commit
2fe0d84053
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: pci.9,v 1.18 2006/03/01 21:40:17 gdamore Exp $
|
||||
.\" $NetBSD: pci.9,v 1.19 2006/03/01 23:25:06 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -210,8 +210,8 @@ It contains the following members:
|
||||
pcireg_t pa_class;
|
||||
.Ed
|
||||
.It Fa struct pci_conf_state
|
||||
Stores the PCI configuration state of a device. It contains
|
||||
the following member:
|
||||
Stores the PCI configuration state of a device.
|
||||
It contains the following member:
|
||||
.Bd -literal
|
||||
pcireg_t reg[16]; /* pci conf register */
|
||||
.Ed
|
||||
@ -308,15 +308,18 @@ specified by
|
||||
and returns the default (or current) mapping type.
|
||||
Valid returns values are:
|
||||
.Bl -tag -width compact
|
||||
.It PCI_MAPREG_TYPE_IO
|
||||
.It Dv PCI_MAPREG_TYPE_IO
|
||||
The mapping is to I/O address space.
|
||||
.It PCI_MAPREG_TYPE_MEM
|
||||
.It Dv PCI_MAPREG_TYPE_MEM
|
||||
The mapping is to memory address space.
|
||||
.It PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT
|
||||
.It Dv PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT
|
||||
The mapping is to 64-bit memory address space.
|
||||
.It PCI_MAPREG_TYPE_ROM
|
||||
The mapping is to ROM. Note that in the current implementation,
|
||||
PCI_MAPREG_TYPE_ROM has the same numeric value as PCI_MAPREG_TYPE_MEM.
|
||||
.It Dv PCI_MAPREG_TYPE_ROM
|
||||
The mapping is to ROM.
|
||||
Note that in the current implementation,
|
||||
.Dv PCI_MAPREG_TYPE_ROM
|
||||
has the same numeric value as
|
||||
.Dv PCI_MAPREG_TYPE_MEM .
|
||||
.El
|
||||
.sp
|
||||
The argument
|
||||
@ -338,15 +341,16 @@ Valid values for the type of mapping
|
||||
.Fa type
|
||||
are:
|
||||
.Bl -tag -width compact
|
||||
.It PCI_MAPREG_TYPE_IO
|
||||
.It Dv PCI_MAPREG_TYPE_IO
|
||||
The mapping should be to I/O address space.
|
||||
.It PCI_MAPREG_TYPE_MEM
|
||||
.It Dv PCI_MAPREG_TYPE_MEM
|
||||
The mapping should be to memory address space.
|
||||
.It PCI_MAPREG_TYPE_ROM
|
||||
The mapping is to access ROM. This type of mapping is only permitted when
|
||||
the value for
|
||||
.It Dv PCI_MAPREG_TYPE_ROM
|
||||
The mapping is to access ROM.
|
||||
This type of mapping is only permitted when the value for
|
||||
.Fa reg
|
||||
is PCI_MAPREG_ROM.
|
||||
is
|
||||
.Dv PCI_MAPREG_ROM .
|
||||
.El
|
||||
.sp
|
||||
The argument
|
||||
@ -400,7 +404,7 @@ Locates a suitable ROM image within a PCI expansion ROM previously mapped with
|
||||
.Fn pci_mapreg_map
|
||||
and creates a subregion for it with
|
||||
.Fn bus_space_subregion .
|
||||
The
|
||||
The
|
||||
.Fa bst
|
||||
and
|
||||
.Fa bsh
|
||||
@ -410,11 +414,11 @@ Valid values for the image type
|
||||
.Fa code
|
||||
are:
|
||||
.Bl -tag -width compact
|
||||
.It PCI_ROM_CODE_TYPE_X86
|
||||
.It Dv PCI_ROM_CODE_TYPE_X86
|
||||
Find a ROM image containing i386 executable code for use by PC BIOS.
|
||||
.It PCI_ROM_CODE_TYPE_OFW
|
||||
Find a ROM image conaining Forth code for use by Open Firmware.
|
||||
.It PCI_ROM_CODE_TYPE_HPPA
|
||||
.It Dv PCI_ROM_CODE_TYPE_OFW
|
||||
Find a ROM image containing Forth code for use by Open Firmware.
|
||||
.It Dv PCI_ROM_CODE_TYPE_HPPA
|
||||
Find a ROM image containing HP PA/RISC executable code.
|
||||
.El
|
||||
.sp
|
||||
@ -425,7 +429,8 @@ The handle to this subregion is returned in
|
||||
The size of the image (and the corresponding subregion) is returned in
|
||||
.Fa sizep .
|
||||
This function can only be used with expansion ROMs located at the
|
||||
PCI_MAPREG_ROM base address register (BAR).
|
||||
.Dv PCI_MAPREG_ROM
|
||||
base address register (BAR).
|
||||
.It Fn pci_intr_map "pa" "ih"
|
||||
See
|
||||
.Xr pci_intr 9 .
|
||||
@ -448,10 +453,10 @@ Valid values for
|
||||
are:
|
||||
.Pp
|
||||
.Bl -tag -width PCI_PWR_D0 -compact
|
||||
.It PCI_PWR_D0
|
||||
.It PCI_PWR_D1
|
||||
.It PCI_PWR_D2
|
||||
.It PCI_PWR_D3
|
||||
.It Dv PCI_PWR_D0
|
||||
.It Dv PCI_PWR_D1
|
||||
.It Dv PCI_PWR_D2
|
||||
.It Dv PCI_PWR_D3
|
||||
.El
|
||||
.It Fn pci_get_powerstate "pc" "tag"
|
||||
Get current power state of the device.
|
||||
|
Loading…
Reference in New Issue
Block a user