Switch machine/bus.h references to machine/bus_defs.h and

machine/bus_funcs.h references.
This commit is contained in:
dyoung 2011-07-01 22:05:28 +00:00
parent 9aff02ebc1
commit 1832697851
2 changed files with 11 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: bus_dma.9,v 1.53 2010/05/14 18:52:46 jruoho Exp $ .\" $NetBSD: bus_dma.9,v 1.54 2011/07/01 22:05:28 dyoung Exp $
.\" .\"
.\" Copyright (c) 1996, 1997, 1998, 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" Copyright (c) 1996, 1997, 1998, 2001, 2005, 2006 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -95,9 +95,12 @@
.Sh DESCRIPTION .Sh DESCRIPTION
Provide a bus- and machine-independent "DMA mapping interface." Provide a bus- and machine-independent "DMA mapping interface."
.Sh IMPLEMENTATION NOTES .Sh IMPLEMENTATION NOTES
All data structures, function prototypes, and macros will be defined All data types and constants will be defined
by the port-specific header by the port-specific header
.In machine/bus.h . .In machine/bus_defs.h .
All functions will be defined
by the port-specific header
.In machine/bus_funcs.h .
Note that this document Note that this document
assumes the existence of types already defined by the current "bus.h" assumes the existence of types already defined by the current "bus.h"
interface. interface.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: bus_space.9,v 1.40 2010/04/16 20:05:37 dyoung Exp $ .\" $NetBSD: bus_space.9,v 1.41 2011/07/01 22:05:28 dyoung Exp $
.\" .\"
.\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -380,7 +380,9 @@ functions.
Implementations are encouraged to implement prototyped (type-checked) Implementations are encouraged to implement prototyped (type-checked)
versions of these interfaces, but may implement them as macros if appropriate. versions of these interfaces, but may implement them as macros if appropriate.
Machine-dependent types, variables, and functions should be marked clearly in Machine-dependent types, variables, and functions should be marked clearly in
.In machine/bus.h .In machine/bus_defs.h
and in
.In machine/bus_funcs.h
to avoid confusion with the to avoid confusion with the
machine-independent types and functions, and, if possible, should be machine-independent types and functions, and, if possible, should be
given names which make the machine-dependence clear. given names which make the machine-dependence clear.
@ -496,7 +498,7 @@ Functions which take a count of bytes have undefined results if the specified
is zero. is zero.
.Sh TYPES .Sh TYPES
Several types are defined in Several types are defined in
.In machine/bus.h .In machine/bus_defs.h
to facilitate use of the to facilitate use of the
.Nm .Nm
functions by drivers. functions by drivers.