1eb8752d5SNicolas Souchu.\" Copyright (c) 1998, Nicolas Souchu 2eb8752d5SNicolas Souchu.\" All rights reserved. 3eb8752d5SNicolas Souchu.\" 4eb8752d5SNicolas Souchu.\" Redistribution and use in source and binary forms, with or without 5eb8752d5SNicolas Souchu.\" modification, are permitted provided that the following conditions 6eb8752d5SNicolas Souchu.\" are met: 7eb8752d5SNicolas Souchu.\" 1. Redistributions of source code must retain the above copyright 8eb8752d5SNicolas Souchu.\" notice, this list of conditions and the following disclaimer. 9eb8752d5SNicolas Souchu.\" 2. Redistributions in binary form must reproduce the above copyright 10eb8752d5SNicolas Souchu.\" notice, this list of conditions and the following disclaimer in the 11eb8752d5SNicolas Souchu.\" documentation and/or other materials provided with the distribution. 12eb8752d5SNicolas Souchu.\" 13eb8752d5SNicolas Souchu.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14eb8752d5SNicolas Souchu.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15eb8752d5SNicolas Souchu.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16eb8752d5SNicolas Souchu.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17eb8752d5SNicolas Souchu.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18eb8752d5SNicolas Souchu.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19eb8752d5SNicolas Souchu.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20eb8752d5SNicolas Souchu.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21eb8752d5SNicolas Souchu.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22eb8752d5SNicolas Souchu.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23eb8752d5SNicolas Souchu.\" SUCH DAMAGE. 24eb8752d5SNicolas Souchu.\" 25eb8752d5SNicolas Souchu.\" 26eb8752d5SNicolas Souchu.Dd October 25, 1998 27eb8752d5SNicolas Souchu.Dt SMB 4 28eb8752d5SNicolas Souchu.Os FreeBSD 29eb8752d5SNicolas Souchu.Sh NAME 30eb8752d5SNicolas Souchu.Nm smb 31eb8752d5SNicolas Souchu.Nd 32eb8752d5SNicolas SouchuSMB generic i/o device driver 33eb8752d5SNicolas Souchu.Sh SYNOPSIS 34eb8752d5SNicolas Souchu.Cd "device smb0 at smbus?" 35eb8752d5SNicolas Souchu.Sh DESCRIPTION 36eb8752d5SNicolas SouchuThe 37eb8752d5SNicolas Souchu.Em smb 38eb8752d5SNicolas Souchucharacter device driver provides generic i/o to any 39eb8752d5SNicolas Souchu.Xr smbus 4 40eb8752d5SNicolas Souchuinstance. In order to control SMB devices, use /dev/smb? with the 41eb8752d5SNicolas Souchufollowing ioctls: 42eb8752d5SNicolas Souchu.Pp 43eb8752d5SNicolas Souchu.Bl -column "System Management Bus ioctls" -compact 44eb8752d5SNicolas Souchu.It Em Ioctl Ta Em Description 45eb8752d5SNicolas Souchu.It Sy SMB_QUICK_WRITE Ta "QuickWrite command" 46eb8752d5SNicolas Souchu.It Sy SMB_QUICK_READ Ta "QuickRead command" 47eb8752d5SNicolas Souchu.It Sy SMB_SENDB Ta "SendByte command" 48eb8752d5SNicolas Souchu.It Sy SMB_RECVB Ta "ReceiveByte command" 49eb8752d5SNicolas Souchu.It Sy SMB_WRITEB Ta "WriteByte command" 50eb8752d5SNicolas Souchu.It Sy SMB_WRITEW Ta "WriteWord command" 51eb8752d5SNicolas Souchu.It Sy SMB_READB Ta "ReadByte command" 52eb8752d5SNicolas Souchu.It Sy SMB_READW Ta "ReadWord command" 53eb8752d5SNicolas Souchu.It Sy SMB_PCALL Ta "ProcedureCall command" 54eb8752d5SNicolas Souchu.It Sy SMB_BWRITE Ta "BlockWrite command" 55eb8752d5SNicolas Souchu.It Sy SMB_BREAD Ta "BlockRead command" 56eb8752d5SNicolas Souchu.El 57eb8752d5SNicolas Souchu.Pp 58eb8752d5SNicolas SouchuUsing the write routine is equivalent to a SMB_WRITEW ioctl. 59eb8752d5SNicolas Souchu.Pp 60eb8752d5SNicolas Souchu.Sh SEE ALSO 61eb8752d5SNicolas Souchu.Xr smbus 4 62eb8752d5SNicolas Souchu.Sh HISTORY 63eb8752d5SNicolas SouchuThe 64eb8752d5SNicolas Souchu.Nm 65eb8752d5SNicolas Souchumanual page first appeared in 66eb8752d5SNicolas Souchu.Fx 3.0 . 67eb8752d5SNicolas Souchu.Sh AUTHOR 68eb8752d5SNicolas SouchuThis 69eb8752d5SNicolas Souchumanual page was written by 70eb8752d5SNicolas Souchu.An Nicolas Souchu . 71