The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/isa/lptreg.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1990 The Regents of the University of California.
    3  * All rights reserved.
    4  *
    5  * This code is derived from software contributed to Berkeley by
    6  * William Jolitz.
    7  *
    8  *      form: @(#)lptreg.h      1.1 (Berkeley) 12/19/90
    9  * $FreeBSD: releng/5.3/sys/i386/isa/lptreg.h 50477 1999-08-28 01:08:13Z peter $
   10  */
   11 
   12 /*
   13  * AT Parallel Port (for lineprinter)
   14  * Interface port and bit definitions
   15  * Written by William Jolitz 12/18/90
   16  * Copyright (C) William Jolitz 1990
   17  */
   18 
   19 /*
   20  * modified for PC9801 by A.Kojima
   21  *                      Kyoto University Microcomputer Club (KMC)
   22  */
   23 
   24 #ifdef PC98
   25 #define lpt_pstb_ctrl   (-9)    /* PSTB enable control */
   26 #define LPC_EN_PSTB     0xc     /* PSTB enable */
   27 #define LPC_DIS_PSTB    0xd     /* PSTB disable */
   28 
   29 #define lpt_data        0       /* Data to/from printer (R/W) */
   30 
   31 #define lpt_status      2       /* Status of printer (R) */
   32 #define LPS_NBSY        0x4     /* printer no ack of data */
   33 
   34 #define lpt_control     6       /* Control printer (W) */
   35 #define LPC_MODE8255    0x82    /* 8255 mode */
   36 #define LPC_IRQ8        0x6     /* IRQ8 active */
   37 #define LPC_NIRQ8       0x7     /* IRQ8 inactive */
   38 #define LPC_PSTB        0xe     /* PSTB active */
   39 #define LPC_NPSTB       0xf     /* PSTB inactive */
   40 
   41 #else /* IBM-PC */
   42 #define lpt_data        0       /* Data to/from printer (R/W) */
   43 
   44 #define lpt_status      1       /* Status of printer (R) */
   45 #define LPS_NERR                0x08    /* printer no error */
   46 #define LPS_SEL                 0x10    /* printer selected */
   47 #define LPS_OUT                 0x20    /* printer out of paper */
   48 #define LPS_NACK                0x40    /* printer no ack of data */
   49 #define LPS_NBSY                0x80    /* printer no ack of data */
   50 
   51 #define lpt_control     2       /* Control printer (R/W) */
   52 #define LPC_STB                 0x01    /* strobe data to printer */
   53 #define LPC_AUTOL               0x02    /* automatic linefeed */
   54 #define LPC_NINIT               0x04    /* initialize printer */
   55 #define LPC_SEL                 0x08    /* printer selected */
   56 #define LPC_ENA                 0x10    /* enable IRQ */
   57 #endif

Cache object: affedf2e29e67a5697f448f40273d39d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.