| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: spi.4,v 1.10 2021/02/27 09:54:59 nia Exp $ | | 1 | .\" $NetBSD: spi.4,v 1.11 2021/03/11 15:46:03 nia Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2006 Urbana-Champaign Independent Media Center. | | 3 | .\" Copyright (c) 2006 Urbana-Champaign Independent Media Center. |
4 | .\" Copyright (c) 2006 Garrett D'Amore. | | 4 | .\" Copyright (c) 2006 Garrett D'Amore. |
5 | .\" All rights reserved. | | 5 | .\" All rights reserved. |
6 | .\" | | 6 | .\" |
7 | .\" Portions of this code were written by Garrett D'Amore for the | | 7 | .\" Portions of this code were written by Garrett D'Amore for the |
8 | .\" Champaign-Urbana Community Wireless Network Project. | | 8 | .\" Champaign-Urbana Community Wireless Network Project. |
9 | .\" | | 9 | .\" |
10 | .\" Redistribution and use in source and binary forms, with or | | 10 | .\" Redistribution and use in source and binary forms, with or |
11 | .\" without modification, are permitted provided that the following | | 11 | .\" without modification, are permitted provided that the following |
12 | .\" conditions are met: | | 12 | .\" conditions are met: |
13 | .\" 1. Redistributions of source code must retain the above copyright | | 13 | .\" 1. Redistributions of source code must retain the above copyright |
14 | .\" notice, this list of conditions and the following disclaimer. | | 14 | .\" notice, this list of conditions and the following disclaimer. |
| @@ -120,54 +120,48 @@ typedef struct spi_ioctl_transfer { | | | @@ -120,54 +120,48 @@ typedef struct spi_ioctl_transfer { |
120 | int sit_addr; | | 120 | int sit_addr; |
121 | const void *sit_send; | | 121 | const void *sit_send; |
122 | size_t sit_sendlen; | | 122 | size_t sit_sendlen; |
123 | void *sit_recv; | | 123 | void *sit_recv; |
124 | size_t sit_recvlen; | | 124 | size_t sit_recvlen; |
125 | } spi_ioctl_transfer_t; | | 125 | } spi_ioctl_transfer_t; |
126 | .Ed | | 126 | .Ed |
127 | .El | | 127 | .El |
128 | .Sh HARDWARE | | 128 | .Sh HARDWARE |
129 | .Nx | | 129 | .Nx |
130 | includes the following machine-independent | | 130 | includes the following machine-independent |
131 | .Tn SPI | | 131 | .Tn SPI |
132 | drivers: | | 132 | drivers: |
133 | .Bl -tag -width pcdisplay -offset indent | | 133 | .Bl -tag -width mcp23s17gpio(4) -offset indent |
134 | .It m25p | | 134 | .It Xr m25p 4 |
135 | STMicroelectronics M25P family of NOR flash devices. | | 135 | STMicroelectronics M25P family of NOR flash devices. |
136 | .It mcp23s17gpio | | 136 | .It Xr mcp23s17gpio 4 |
137 | Microchip MCP23S17 16-bit GPIO chip. | | 137 | Microchip MCP23S17 16-bit GPIO chip. |
138 | .It mcp3kadc | | 138 | .It Xr mcp3kadc 4 |
139 | Microchip MCP3x0x SAR analog to digital converter. | | 139 | Microchip MCP3x0x SAR analog to digital converter. |
140 | .It mcp48x1dac | | 140 | .It Xr mcp48x1dac 4 |
141 | Microchip MCP4801/MCP4811/MCP4821 digital to analog converter. | | 141 | Microchip MCP4801/MCP4811/MCP4821 digital to analog converter. |
142 | .It tm121temp | | 142 | .It Xr tm121temp 4 |
143 | Texas Instruments TMP121 temperature sensor. | | 143 | Texas Instruments TMP121 temperature sensor. |
144 | .It ssdfb | | 144 | .It Xr ssdfb 4 |
145 | OLED/PLED framebuffer modules. | | 145 | OLED/PLED framebuffer modules. |
146 | .El | | 146 | .El |
147 | .Sh FILES | | 147 | .Sh FILES |
148 | .Bl -tag -width "/dev/spiu" -compact | | 148 | .Bl -tag -width "/dev/spiu" -compact |
149 | .It /dev/spi Ns Ar u | | 149 | .It /dev/spi Ns Ar u |
150 | SPI device unit | | 150 | SPI device unit |
151 | .Ar u | | 151 | .Ar u |
152 | file. | | 152 | file. |
153 | .El | | 153 | .El |
154 | .Sh SEE ALSO | | 154 | .Sh SEE ALSO |
155 | .Xr m25p 4 , | | | |
156 | .Xr mcp23s17gpio 4 , | | | |
157 | .Xr mcp3kadc 4 , | | | |
158 | .Xr mcp48x1dac 4 , | | | |
159 | .Xr ssdfb 4 , | | | |
160 | .Xr tm121temp 4 , | | | |
161 | .Xr spi 9 | | 155 | .Xr spi 9 |
162 | .Sh HISTORY | | 156 | .Sh HISTORY |
163 | The machine-independent | | 157 | The machine-independent |
164 | .Tn SPI | | 158 | .Tn SPI |
165 | framework was written by | | 159 | framework was written by |
166 | .An Garrett D'Amore | | 160 | .An Garrett D'Amore |
167 | for the | | 161 | for the |
168 | Champaign-Urbana Community Wireless Network Project (CUWiN), and | | 162 | Champaign-Urbana Community Wireless Network Project (CUWiN), and |
169 | appeared in | | 163 | appeared in |
170 | .Nx 4.0 . | | 164 | .Nx 4.0 . |
171 | The | | 165 | The |
172 | .Xr ioctl 2 | | 166 | .Xr ioctl 2 |
173 | interface allowing configuration from userspace appeared in | | 167 | interface allowing configuration from userspace appeared in |