1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 25e1ddb48SDavid Howells /* 35e1ddb48SDavid Howells * g_printer.h -- Header file for USB Printer gadget driver 45e1ddb48SDavid Howells * 55e1ddb48SDavid Howells * Copyright (C) 2007 Craig W. Nadler 65e1ddb48SDavid Howells * 75e1ddb48SDavid Howells * This program is free software; you can redistribute it and/or modify 85e1ddb48SDavid Howells * it under the terms of the GNU General Public License as published by 95e1ddb48SDavid Howells * the Free Software Foundation; either version 2 of the License, or 105e1ddb48SDavid Howells * (at your option) any later version. 115e1ddb48SDavid Howells * 125e1ddb48SDavid Howells * This program is distributed in the hope that it will be useful, 135e1ddb48SDavid Howells * but WITHOUT ANY WARRANTY; without even the implied warranty of 145e1ddb48SDavid Howells * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 155e1ddb48SDavid Howells * GNU General Public License for more details. 165e1ddb48SDavid Howells * 175e1ddb48SDavid Howells * You should have received a copy of the GNU General Public License 185e1ddb48SDavid Howells * along with this program; if not, write to the Free Software 195e1ddb48SDavid Howells * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 205e1ddb48SDavid Howells */ 215e1ddb48SDavid Howells 225e1ddb48SDavid Howells #ifndef __LINUX_USB_G_PRINTER_H 235e1ddb48SDavid Howells #define __LINUX_USB_G_PRINTER_H 245e1ddb48SDavid Howells 255e1ddb48SDavid Howells #define PRINTER_NOT_ERROR 0x08 265e1ddb48SDavid Howells #define PRINTER_SELECTED 0x10 275e1ddb48SDavid Howells #define PRINTER_PAPER_EMPTY 0x20 285e1ddb48SDavid Howells 295e1ddb48SDavid Howells /* The 'g' code is also used by gadgetfs ioctl requests. 305e1ddb48SDavid Howells * Don't add any colliding codes to either driver, and keep 315e1ddb48SDavid Howells * them in unique ranges (size 0x20 for now). 325e1ddb48SDavid Howells */ 335e1ddb48SDavid Howells #define GADGET_GET_PRINTER_STATUS _IOR('g', 0x21, unsigned char) 345e1ddb48SDavid Howells #define GADGET_SET_PRINTER_STATUS _IOWR('g', 0x22, unsigned char) 355e1ddb48SDavid Howells 365e1ddb48SDavid Howells #endif /* __LINUX_USB_G_PRINTER_H */ 37