···1717 * with compliant or compatible devices. It will use whatever features1818 * the device supports, prefering those that are typically faster.1919 *2020- * When the device is opened, it is left in COMPATABILITY mode, and2020+ * When the device is opened, it is left in COMPATIBILITY mode, and2121 * writes work like any printer device. The driver only attempt to2222 * negotiate 1284 modes when needed so that plugs can be pulled,2323 * switch boxes switched, etc., without disrupting things. It will
+1-73
include/asm-sparc64/bpp.h
···11-#ifndef _SPARC64_BPP_H22-#define _SPARC64_BPP_H33-44-/*55- * Copyright (c) 1995 Picture Elements66- * Stephen Williams77- * Gus Baldauf88- *99- * Linux/SPARC port by Peter Zaitcev.1010- * Integration into SPARC tree by Tom Dyas.1111- */1212-1313-#include <linux/ioctl.h>1414-1515-/*1616- * This is a driver that supports IEEE Std 1284-1994 communications1717- * with compliant or compatible devices. It will use whatever features1818- * the device supports, prefering those that are typically faster.1919- *2020- * When the device is opened, it is left in COMPATIBILITY mode, and2121- * writes work like any printer device. The driver only attempt to2222- * negotiate 1284 modes when needed so that plugs can be pulled,2323- * switch boxes switched, etc., without disrupting things. It will2424- * also leave the device in compatibility mode when closed.2525- */2626-2727-2828-2929-/*3030- * This driver also supplies ioctls to manually manipulate the3131- * pins. This is great for testing devices, or writing code to deal3232- * with bizzarro-mode of the ACME Special TurboThingy Plus.3333- *3434- * NOTE: These ioctl currently do not interact well with3535- * read/write. Caveat emptor.3636- *3737- * PUT_PINS allows us to assign the sense of all the pins, including3838- * the data pins if being driven by the host. The GET_PINS returns the3939- * pins that the peripheral drives, including data if appropriate.4040- */4141-4242-# define BPP_PUT_PINS _IOW('B', 1, int)4343-# define BPP_GET_PINS _IOR('B', 2, char) /* that's bogus - should've been _IO */4444-# define BPP_PUT_DATA _IOW('B', 3, int)4545-# define BPP_GET_DATA _IOR('B', 4, char) /* ditto */4646-4747-/*4848- * Set the data bus to input mode. Disengage the data bin driver and4949- * be prepared to read values from the peripheral. If the arg is 0,5050- * then revert the bus to output mode.5151- */5252-# define BPP_SET_INPUT _IOW('B', 5, int)5353-5454-/*5555- * These bits apply to the PUT operation...5656- */5757-# define BPP_PP_nStrobe 0x00015858-# define BPP_PP_nAutoFd 0x00025959-# define BPP_PP_nInit 0x00046060-# define BPP_PP_nSelectIn 0x00086161-6262-/*6363- * These apply to the GET operation, which also reads the current value6464- * of the previously put values. A bit mask of these will be returned6565- * as a bit mask in the return code of the ioctl().6666- */6767-# define BPP_GP_nAck 0x01006868-# define BPP_GP_Busy 0x02006969-# define BPP_GP_PError 0x04007070-# define BPP_GP_Select 0x08007171-# define BPP_GP_nFault 0x10007272-7373-#endif11+#include <asm-sparc/bpp.h>