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-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
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: src/sys/i386/isa/lptreg.h,v 1.7 1999/08/28 00:44:57 peter Exp $
   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: 9fc88c9d6cac91aca5a52cd5b0bd323d


[ 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.