2 .\" Copyright (c) 2012 Robert N. M. Watson
3 .\" All rights reserved.
5 .\" This software was developed by SRI International and the University of
6 .\" Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7 .\" ("CTSRD"), as part of the DARPA CRASH research programme.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .Nd driver for generic Altera Avalon-bus-attached, memory-mapped devices
39 .Cd "device altera_avgen"
42 .Pa /boot/device.hints :
43 .Cd hint.altera_avgen.0.at="nexus0"
44 .Cd hint.altera_avgen.0.maddr=0x7f00a000
45 .Cd hint.altera_avgen.0.msize=20
46 .Cd hint.altera_avgen.0.width=4
47 .Cd hint.altera_avgen.0.fileio="rw"
48 .Cd hint.altera_avgen.0.devname="berirom"
52 device driver provides generic support for memory-mapped devices on the
55 entries configure the address, size, I/O disposition, and
57 device node name that will be used.
64 system calls (and variations) may be used on
66 device nodes, subject to constraints imposed using
69 Although reading and writing mapped memory is supported,
71 does not currently support directing device interrupts to userspace.
75 sub-fields are available to configure
78 .Bl -tag -width devunit
80 base physical address of the memory region to export; must be aligned to
83 length of the memory region export; must be aligned to
90 operations will be performed.
91 Larger requests will be broken down into
93 operations; smaller requests will be rejected.
94 I/O operations must be aligned to
97 allowed file descriptor operations;
118 specifies a device name relative to
121 specifies a device unit number; no unit number is used if this is unspecified.
131 device driver first appeared in
136 device driver and this manual page were
137 developed by SRI International and the University of Cambridge Computer
138 Laboratory under DARPA/AFRL contract
141 as part of the DARPA CRASH research programme.
142 This device driver was written by
143 .An Robert N. M. Watson .
146 is intended to support the writing of userspace device drivers; however, it
147 does not permit directing interrupts to userspace, only memory-mapped I/O.
152 bus attachment, which is appropriate for system-on-chip busses such as
154 If the target device is off of another bus type, then additional bus
155 attachments will be required.