Annotation of 43BSDReno/sys/tahoevba/psreg.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1986 The Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution is only permitted until one year after the first shipment
                      6:  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
                      7:  * binary forms are permitted provided that: (1) source distributions retain
                      8:  * this entire copyright notice and comment, and (2) distributions including
                      9:  * binaries display the following acknowledgement:  This product includes
                     10:  * software developed by the University of California, Berkeley and its
                     11:  * contributors'' in the documentation or other materials provided with the
                     12:  * distribution and in all advertising materials mentioning features or use
                     13:  * of this software.  Neither the name of the University nor the names of
                     14:  * its contributors may be used to endorse or promote products derived from
                     15:  * this software without specific prior written permission.
                     16:  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     17:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     18:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     19:  *
                     20:  *     @(#)psreg.h     7.4 (Berkeley) 6/28/90
                     21:  */
                     22: 
                     23: #ifndef _PSREG_
                     24: #define _PSREG_
                     25: /*
                     26:  * PS300 definitions.
                     27:  */
                     28: #ifndef KERNEL
                     29: #include <sys/ioctl.h>
                     30: #else
                     31: #include "ioctl.h"
                     32: #endif
                     33: 
                     34: struct  pslookup {
                     35:         int     pl_len;                 /* length of name string */
                     36:         char    *pl_name;               /* address of name string */
                     37:         u_long  pl_addr;                /* symbol's address */
                     38: };
                     39: 
                     40: /*
                     41:  * Maximum string which may be supplied for lookup.
                     42:  */
                     43: #define PS_MAXNAMELEN   256             /* must be <= PSMAXDMA */
                     44: 
                     45: /*
                     46:  * When doing physical i/o, one may specify the address
                     47:  * and whether or not refresh sync should is required with
                     48:  * a null iovec descriptor (iov_len = 0).
                     49:  */
                     50: #define PSIO_SYNC       1               /* do physical write w/ refresh sync */
                     51: 
                     52: /*
                     53:  * Ioctl requests.
                     54:  */
                     55: #define PSIOGETERROR    _IOR('p', 0, int)                 /* get last error */
                     56: #define PSIOLOOKUP      _IOWR('p', 1, struct pslookup)    /* do name lookup */
                     57: #define PSIORWLOGICAL   _IOWR('p', 2, int)                /* set i/o mode */
                     58: 
                     59: /*
                     60:  * Error codes returned by PSIOGETERROR are either
                     61:  * returned by the PS300 or, from the list below,
                     62:  * generated by the device driver.
                     63:  */
                     64: #define PSERROR_DIOTIMO         1       /* timeout during dioread/diowrite */
                     65: #define PSERROR_INVALBC         2       /* invalid byte count for read/write */
                     66: #define PSERROR_BADADDR         3       /* invalid address for read/write */
                     67: #define PSERROR_BADCMD          4       /* invalid command in ikstart */
                     68: #define PSERROR_NAMETIMO        5       /* timeout during nameaddr dioread */
                     69: #define PSERROR_CMDTIMO         6       /* operation timed out */
                     70: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.