1
/* $Id: drv_SamsungSPF 975 2009-01-18 11:16:20Z michael $
2
* $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/drv_SamsungSPF.c $
4
* sample lcd4linux driver
6
* Copyright (C) 2012 Sascha Plazar <sascha@plazar.de>
7
* Copyright (C) 2005, 2006, 2007 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
9
* This file is part of LCD4Linux.
11
* LCD4Linux is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2, or (at your option)
16
* LCD4Linux is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
// Drivername for verbose output
28
static char Name[] = "SamsungSPF";
30
#define USB_HDR_LEN 12
36
const int storageMode;
37
const int monitorMode;
39
const unsigned int xRes;
40
const unsigned int yRes;
43
static struct SPFdev spfDevices[] = {
47
.productID = {0x200e, 0x200f},
54
.productID = {0x2012, 0x2013},
61
.productID = {0x2027, 0x2028},
67
static int numFrames = sizeof(spfDevices) / sizeof(spfDevices[0]);
69
struct usb_device *myDev;
70
usb_dev_handle *myDevHandle;
71
struct SPFdev *myFrame;
74
unsigned char R, G, B;