Annotation of Gnu-Mach/i386/i386at/lpr.h, revision 1.1.1.1

1.1       root        1: /* 
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990 Carnegie Mellon University
                      4:  * All Rights Reserved.
                      5:  * 
                      6:  * Permission to use, copy, modify and distribute this software and its
                      7:  * documentation is hereby granted, provided that both the copyright
                      8:  * notice and this permission notice appear in all copies of the
                      9:  * software, derivative works or modified versions, and any portions
                     10:  * thereof, and that both notices appear in supporting documentation.
                     11:  * 
                     12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     15:  * 
                     16:  * Carnegie Mellon requests users of this software to return to
                     17:  * 
                     18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
                     22:  * 
                     23:  * any improvements or extensions that they make and grant Carnegie Mellon
                     24:  * the rights to redistribute these changes.
                     25:  */
                     26: /* 
                     27:  *     Parallel port printer driver v1.0
                     28:  *     All rights reserved.
                     29:  */ 
                     30: 
                     31: #ifndef _LPRREG_H_
                     32: #define _LPRREG_H_
                     33:   
                     34: #define DATA(addr)     (addr + 0)
                     35: #define STATUS(addr)   (addr + 1)
                     36: #define INTR_ENAB(addr)        (addr + 2)
                     37: 
                     38: extern void lprintr(int unit);
                     39: int lprprobe(vm_offset_t port, struct bus_ctlr *dev);
                     40: void lprstop(struct tty *tp, int flags);
                     41: void lprstart(struct tty *tp);
                     42: void lprattach(struct bus_device *dev);
                     43: 
                     44: extern io_return_t
                     45: lprgetstat(
                     46:        dev_t           dev,
                     47:        int             flavor,
                     48:        int             *data,
                     49:        natural_t       *count);
                     50: 
                     51: extern io_return_t
                     52: lprsetstat(
                     53:        dev_t           dev,
                     54:        int             flavor,
                     55:        int             *data,
                     56:        natural_t       count);
                     57: 
                     58: void lprpr_addr(unsigned short addr);
                     59: 
                     60: extern int lpropen(dev_t dev, int flag, io_req_t ior);
                     61: extern void lprclose(dev_t dev, int flag);
                     62: extern int lprread(dev_t dev, io_req_t ior);
                     63: extern int lprwrite(dev_t      dev, io_req_t ior);
                     64: extern int lprportdeath(dev_t dev, mach_port_t port);
                     65: 
                     66: #endif /* _LPRREG_H_ */

unix.superglobalmegacorp.com

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