![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 0002 /* 0003 * g_printer.h -- Header file for USB Printer gadget driver 0004 * 0005 * Copyright (C) 2007 Craig W. Nadler 0006 * 0007 * This program is free software; you can redistribute it and/or modify 0008 * it under the terms of the GNU General Public License as published by 0009 * the Free Software Foundation; either version 2 of the License, or 0010 * (at your option) any later version. 0011 * 0012 * This program is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 * GNU General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU General Public License 0018 * along with this program; if not, write to the Free Software 0019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0020 */ 0021 0022 #ifndef __LINUX_USB_G_PRINTER_H 0023 #define __LINUX_USB_G_PRINTER_H 0024 0025 #define PRINTER_NOT_ERROR 0x08 0026 #define PRINTER_SELECTED 0x10 0027 #define PRINTER_PAPER_EMPTY 0x20 0028 0029 /* The 'g' code is also used by gadgetfs ioctl requests. 0030 * Don't add any colliding codes to either driver, and keep 0031 * them in unique ranges (size 0x20 for now). 0032 */ 0033 #define GADGET_GET_PRINTER_STATUS _IOR('g', 0x21, unsigned char) 0034 #define GADGET_SET_PRINTER_STATUS _IOWR('g', 0x22, unsigned char) 0035 0036 #endif /* __LINUX_USB_G_PRINTER_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |