Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0f13a700
Commit
0f13a700
authored
Feb 27, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linuxusb@bkbits.net/linus-2.5
into kroah.com:/home/greg/linux/BK/gregkh-2.5
parents
be8013e8
eb7282b2
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
2022 additions
and
506 deletions
+2022
-506
drivers/usb/class/usb-midi.h
drivers/usb/class/usb-midi.h
+8
-0
drivers/usb/core/driverfs.c
drivers/usb/core/driverfs.c
+6
-0
drivers/usb/core/hcd.h
drivers/usb/core/hcd.h
+4
-0
drivers/usb/core/hub.c
drivers/usb/core/hub.c
+1
-1
drivers/usb/host/ehci-dbg.c
drivers/usb/host/ehci-dbg.c
+4
-2
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+4
-2
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci-q.c
+17
-7
drivers/usb/host/ehci.h
drivers/usb/host/ehci.h
+1
-0
drivers/usb/host/ohci-dbg.c
drivers/usb/host/ohci-dbg.c
+214
-81
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-hcd.c
+61
-38
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-hub.c
+4
-6
drivers/usb/host/ohci-mem.c
drivers/usb/host/ohci-mem.c
+2
-2
drivers/usb/host/ohci-pci.c
drivers/usb/host/ohci-pci.c
+43
-32
drivers/usb/host/ohci-q.c
drivers/usb/host/ohci-q.c
+37
-41
drivers/usb/host/ohci-sa1111.c
drivers/usb/host/ohci-sa1111.c
+1
-9
drivers/usb/host/ohci.h
drivers/usb/host/ohci.h
+22
-1
drivers/usb/image/scanner.c
drivers/usb/image/scanner.c
+7
-2
drivers/usb/image/scanner.h
drivers/usb/image/scanner.h
+21
-3
drivers/usb/input/Kconfig
drivers/usb/input/Kconfig
+14
-0
drivers/usb/input/Makefile
drivers/usb/input/Makefile
+1
-0
drivers/usb/input/hid-core.c
drivers/usb/input/hid-core.c
+5
-0
drivers/usb/input/kbtab.c
drivers/usb/input/kbtab.c
+229
-0
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+134
-87
drivers/usb/misc/usbtest.c
drivers/usb/misc/usbtest.c
+81
-51
drivers/usb/serial/Kconfig
drivers/usb/serial/Kconfig
+12
-0
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/belkin_sa.c
+42
-11
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+1
-0
drivers/usb/serial/ipaq.h
drivers/usb/serial/ipaq.h
+3
-0
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+32
-1
drivers/usb/serial/keyspan.h
drivers/usb/serial/keyspan.h
+42
-0
drivers/usb/serial/keyspan_mpr_fw.h
drivers/usb/serial/keyspan_mpr_fw.h
+286
-0
drivers/usb/serial/keyspan_usa49wlc_fw.h
drivers/usb/serial/keyspan_usa49wlc_fw.h
+476
-0
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+45
-24
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mct_u232.c
+75
-29
drivers/usb/serial/pl2303.c
drivers/usb/serial/pl2303.c
+51
-33
drivers/usb/serial/visor.c
drivers/usb/serial/visor.c
+30
-35
drivers/usb/storage/unusual_devs.h
drivers/usb/storage/unusual_devs.h
+6
-6
include/linux/usb.h
include/linux/usb.h
+0
-2
No files found.
drivers/usb/class/usb-midi.h
View file @
0f13a700
...
...
@@ -41,6 +41,7 @@
#define USBMIDI_ROLAND_UA100G 0x0000
#define USBMIDI_ROLAND_MPU64 0x0002
#define USBMIDI_ROLAND_SC8850 0x0003
#define USBMIDI_ROLAND_SC8820 0x0007
#define USBMIDI_ROLAND_UM2 0x0005
#define USBMIDI_ROLAND_UM1 0x0009
#define USBMIDI_ROLAND_PC300 0x0008
...
...
@@ -104,6 +105,13 @@ static struct usb_midi_device usb_midi_devices[] = {
{
{
0x01
,
15
},
{
-
1
,
-
1
}
},
},
{
/* Roland SC8820 */
"Roland SC8820"
,
USB_VENDOR_ID_ROLAND
,
USBMIDI_ROLAND_SC8820
,
2
,
-
1
,
{
{
0x81
,
17
},
{
-
1
,
-
1
}
},
{
{
0x01
,
17
},
{
-
1
,
-
1
}
},
},
{
/* YAMAHA MU1000 */
"YAMAHA MU1000"
,
USB_VENDOR_ID_YAMAHA
,
USBMIDI_YAMAHA_MU1000
,
0
,
-
1
,
...
...
drivers/usb/core/driverfs.c
View file @
0f13a700
...
...
@@ -183,15 +183,21 @@ show_##field (struct device *dev, char *buf) \
} \
static DEVICE_ATTR(field, S_IRUGO, show_##field, NULL);
usb_intf_attr
(
bInterfaceNumber
,
"%02x
\n
"
)
usb_intf_attr
(
bAlternateSetting
,
"%2d
\n
"
)
usb_intf_attr
(
bNumEndpoints
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceSubClass
,
"%02x
\n
"
)
usb_intf_attr
(
bInterfaceProtocol
,
"%02x
\n
"
)
usb_intf_attr
(
iInterface
,
"%02x
\n
"
)
void
usb_create_driverfs_intf_files
(
struct
usb_interface
*
intf
)
{
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceNumber
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bAlternateSetting
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bNumEndpoints
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceSubClass
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_bInterfaceProtocol
);
device_create_file
(
&
intf
->
dev
,
&
dev_attr_iInterface
);
}
drivers/usb/core/hcd.h
View file @
0f13a700
...
...
@@ -254,6 +254,10 @@ extern void usb_set_maxpacket(struct usb_device *dev);
extern
void
usb_destroy_configuration
(
struct
usb_device
*
dev
);
extern
int
usb_set_address
(
struct
usb_device
*
dev
);
/* use these only before the device's address has been set */
#define usb_snddefctrl(dev) ((PIPE_CONTROL << 30) | __create_pipe(dev,0))
#define usb_rcvdefctrl(dev) ((PIPE_CONTROL << 30) | __create_pipe(dev,0) | USB_DIR_IN)
/*-------------------------------------------------------------------------*/
/*
...
...
drivers/usb/core/hub.c
View file @
0f13a700
...
...
@@ -1148,7 +1148,7 @@ void usb_hub_cleanup(void)
int
ret
;
/* Kill the thread */
ret
=
kill_proc
(
khubd_pid
,
SIG
TERM
,
1
);
ret
=
kill_proc
(
khubd_pid
,
SIG
KILL
,
1
);
wait_for_completion
(
&
khubd_exited
);
...
...
drivers/usb/host/ehci-dbg.c
View file @
0f13a700
...
...
@@ -605,8 +605,10 @@ show_registers (struct device *dev, char *buf)
}
#ifdef EHCI_STATS
temp
=
snprintf
(
next
,
size
,
"irq normal %ld err %ld reclaim %ld
\n
"
,
ehci
->
stats
.
normal
,
ehci
->
stats
.
error
,
ehci
->
stats
.
reclaim
);
temp
=
snprintf
(
next
,
size
,
"irq normal %ld err %ld reclaim %ld (lost %ld)
\n
"
,
ehci
->
stats
.
normal
,
ehci
->
stats
.
error
,
ehci
->
stats
.
reclaim
,
ehci
->
stats
.
lost_iaa
);
size
-=
temp
;
next
+=
temp
;
...
...
drivers/usb/host/ehci-hcd.c
View file @
0f13a700
...
...
@@ -260,6 +260,7 @@ static void ehci_watchdog (unsigned long param)
if
(
status
&
STS_IAA
)
{
ehci_vdbg
(
ehci
,
"lost IAA
\n
"
);
COUNT
(
ehci
->
stats
.
lost_iaa
);
writel
(
STS_IAA
,
&
ehci
->
regs
->
status
);
ehci
->
reclaim_ready
=
1
;
}
...
...
@@ -547,8 +548,9 @@ static void ehci_stop (struct usb_hcd *hcd)
ehci_mem_cleanup
(
ehci
);
#ifdef EHCI_STATS
ehci_dbg
(
ehci
,
"irq normal %ld err %ld reclaim %ld
\n
"
,
ehci
->
stats
.
normal
,
ehci
->
stats
.
error
,
ehci
->
stats
.
reclaim
);
ehci_dbg
(
ehci
,
"irq normal %ld err %ld reclaim %ld (lost %ld)
\n
"
,
ehci
->
stats
.
normal
,
ehci
->
stats
.
error
,
ehci
->
stats
.
reclaim
,
ehci
->
stats
.
lost_iaa
);
ehci_dbg
(
ehci
,
"complete %ld unlink %ld
\n
"
,
ehci
->
stats
.
complete
,
ehci
->
stats
.
unlink
);
#endif
...
...
drivers/usb/host/ehci-q.c
View file @
0f13a700
...
...
@@ -800,6 +800,7 @@ static struct ehci_qh *qh_append_tds (
&&
!
usb_pipecontrol
(
urb
->
pipe
))
{
/* "never happens": drivers do stall cleanup right */
if
(
qh
->
qh_state
!=
QH_STATE_IDLE
&&
!
list_empty
(
&
qh
->
qtd_list
)
&&
qh
->
qh_state
!=
QH_STATE_COMPLETING
)
ehci_warn
(
ehci
,
"clear toggle dev%d "
"ep%d%s: not idle
\n
"
,
...
...
@@ -1014,6 +1015,7 @@ static void
scan_async
(
struct
ehci_hcd
*
ehci
,
struct
pt_regs
*
regs
)
{
struct
ehci_qh
*
qh
;
int
unlink_delay
=
0
;
if
(
!++
(
ehci
->
stamp
))
ehci
->
stamp
++
;
...
...
@@ -1040,17 +1042,25 @@ scan_async (struct ehci_hcd *ehci, struct pt_regs *regs)
}
}
/* unlink idle entries, reducing HC PCI usage as
*
well as HCD schedule-scanning costs.
*
*
FIXME don't unlink idle entries so quickly; it
*
can penalize (common) half duplex protocols.
/* unlink idle entries, reducing HC PCI usage as
well
*
as HCD schedule-scanning costs. delay for any qh
*
we just scanned, there's a not-unusual case that it
*
doesn't stay idle for long.
*
(plus, avoids some kind of re-activation race.)
*/
if
(
list_empty
(
&
qh
->
qtd_list
)
&&
!
ehci
->
reclaim
)
{
start_unlink_async
(
ehci
,
qh
);
if
(
list_empty
(
&
qh
->
qtd_list
))
{
if
(
qh
->
stamp
==
ehci
->
stamp
)
unlink_delay
=
1
;
else
if
(
!
ehci
->
reclaim
)
{
start_unlink_async
(
ehci
,
qh
);
unlink_delay
=
0
;
}
}
qh
=
qh
->
qh_next
.
qh
;
}
while
(
qh
);
}
if
(
unlink_delay
&&
!
timer_pending
(
&
ehci
->
watchdog
))
mod_timer
(
&
ehci
->
watchdog
,
jiffies
+
EHCI_WATCHDOG_JIFFIES
/
2
);
}
drivers/usb/host/ehci.h
View file @
0f13a700
...
...
@@ -27,6 +27,7 @@ struct ehci_stats {
unsigned
long
normal
;
unsigned
long
error
;
unsigned
long
reclaim
;
unsigned
long
lost_iaa
;
/* termination of urbs from core */
unsigned
long
complete
;
...
...
drivers/usb/host/ohci-dbg.c
View file @
0f13a700
/*
* OHCI HCD (Host Controller Driver) for USB.
*
*
* (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at>
* (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net>
*
*
* This file is licenced under the GPL.
* $Id: ohci-dbg.c,v 1.4 2002/03/27 20:40:40 dbrownell Exp $
*/
/*-------------------------------------------------------------------------*/
#ifdef DEBUG
#define edstring(ed_type) ({ char *temp; \
switch (ed_type) { \
case PIPE_CONTROL: temp = "
CTRL
"; break; \
case PIPE_BULK: temp = "
BULK
"; break; \
case PIPE_INTERRUPT: temp = "
INTR
"; break; \
default: temp = "
ISOC
"; break; \
case PIPE_CONTROL: temp = "
ctrl
"; break; \
case PIPE_BULK: temp = "
bulk
"; break; \
case PIPE_INTERRUPT: temp = "
intr
"; break; \
default: temp = "
isoc
"; break; \
}; temp;})
#define pipestring(pipe) edstring(usb_pipetype(pipe))
/* debug| print the main components of an URB
/* debug| print the main components of an URB
* small: 0) header + data packets 1) just header
*/
static
void
__attribute__
((
unused
))
urb_print
(
struct
urb
*
urb
,
char
*
str
,
int
small
)
{
unsigned
int
pipe
=
urb
->
pipe
;
if
(
!
urb
->
dev
||
!
urb
->
dev
->
bus
)
{
dbg
(
"%s URB: no dev"
,
str
);
return
;
}
#ifndef OHCI_VERBOSE_DEBUG
if
(
urb
->
status
!=
0
)
#endif
dbg
(
"%s %p dev
:%d,ep=%d-%c,%s,flags:%x,len:%d/%d,stat:%d"
,
dbg
(
"%s %p dev
=%d ep=%d%s-%s flags=%x len=%d/%d stat=%d"
,
str
,
urb
,
usb_pipedevice
(
pipe
),
usb_pipeendpoint
(
pipe
),
usb_pipeout
(
pipe
)
?
'O'
:
'I'
,
usb_pipeendpoint
(
pipe
),
usb_pipeout
(
pipe
)
?
"out"
:
"in"
,
pipestring
(
pipe
),
urb
->
transfer_flags
,
urb
->
actual_length
,
urb
->
transfer_flags
,
urb
->
actual_length
,
urb
->
transfer_buffer_length
,
urb
->
status
);
...
...
@@ -55,27 +54,43 @@ urb_print (struct urb * urb, char * str, int small)
if
(
usb_pipecontrol
(
pipe
))
{
printk
(
KERN_DEBUG
__FILE__
": setup(8):"
);
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
8
;
i
++
)
printk
(
" %02x"
,
((
__u8
*
)
urb
->
setup_packet
)
[
i
]);
printk
(
"
\n
"
);
}
if
(
urb
->
transfer_buffer_length
>
0
&&
urb
->
transfer_buffer
)
{
printk
(
KERN_DEBUG
__FILE__
": data(%d/%d):"
,
urb
->
actual_length
,
printk
(
KERN_DEBUG
__FILE__
": data(%d/%d):"
,
urb
->
actual_length
,
urb
->
transfer_buffer_length
);
len
=
usb_pipeout
(
pipe
)
?
len
=
usb_pipeout
(
pipe
)
?
urb
->
transfer_buffer_length
:
urb
->
actual_length
;
for
(
i
=
0
;
i
<
16
&&
i
<
len
;
i
++
)
for
(
i
=
0
;
i
<
16
&&
i
<
len
;
i
++
)
printk
(
" %02x"
,
((
__u8
*
)
urb
->
transfer_buffer
)
[
i
]);
printk
(
"%s stat:%d
\n
"
,
i
<
len
?
"..."
:
""
,
urb
->
status
);
}
}
}
#endif
}
static
void
ohci_dump_intr_mask
(
struct
device
*
dev
,
char
*
label
,
__u32
mask
)
#define ohci_dbg_sw(ohci, next, size, format, arg...) \
do { \
if (next) { \
unsigned s_len; \
s_len = snprintf (*next, *size, format, ## arg ); \
*size -= s_len; *next += s_len; \
} else \
ohci_dbg(ohci,format, ## arg ); \
} while (0);
static
void
ohci_dump_intr_mask
(
struct
ohci_hcd
*
ohci
,
char
*
label
,
u32
mask
,
char
**
next
,
unsigned
*
size
)
{
dev_dbg
(
dev
,
"%s:
0x%08x%s%s%s%s%s%s%s%s%s
\n
"
,
ohci_dbg_sw
(
ohci
,
next
,
size
,
"%s
0x%08x%s%s%s%s%s%s%s%s%s
\n
"
,
label
,
mask
,
(
mask
&
OHCI_INTR_MIE
)
?
" MIE"
:
""
,
...
...
@@ -90,10 +105,15 @@ static void ohci_dump_intr_mask (struct device *dev, char *label, __u32 mask)
);
}
static
void
maybe_print_eds
(
struct
device
*
dev
,
char
*
label
,
__u32
value
)
static
void
maybe_print_eds
(
struct
ohci_hcd
*
ohci
,
char
*
label
,
u32
value
,
char
**
next
,
unsigned
*
size
)
{
if
(
value
)
dev_dbg
(
dev
,
"%s %08x
\n
"
,
label
,
value
);
ohci_dbg_sw
(
ohci
,
next
,
size
,
"%s %08x
\n
"
,
label
,
value
);
}
static
char
*
hcfs2string
(
int
state
)
...
...
@@ -108,19 +128,22 @@ static char *hcfs2string (int state)
}
// dump control and status registers
static
void
ohci_dump_status
(
struct
ohci_hcd
*
controller
)
static
void
ohci_dump_status
(
struct
ohci_hcd
*
controller
,
char
**
next
,
unsigned
*
size
)
{
struct
ohci_regs
*
regs
=
controller
->
regs
;
struct
device
*
dev
=
controller
->
hcd
.
controller
;
__u32
temp
;
u32
temp
;
temp
=
readl
(
&
regs
->
revision
)
&
0xff
;
dev_dbg
(
dev
,
"OHCI %d.%d, %s legacy support registers
\n
"
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"OHCI %d.%d, %s legacy support registers
\n
"
,
0x03
&
(
temp
>>
4
),
(
temp
&
0x0f
),
(
temp
&
0x10
)
?
"with"
:
"NO"
);
temp
=
readl
(
&
regs
->
control
);
dev_dbg
(
dev
,
"control: 0x%08x%s%s%s HCFS=%s%s%s%s%s CBSR=%d
\n
"
,
temp
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"control 0x%03x%s%s%s HCFS=%s%s%s%s%s CBSR=%d
\n
"
,
temp
,
(
temp
&
OHCI_CTRL_RWE
)
?
" RWE"
:
""
,
(
temp
&
OHCI_CTRL_RWC
)
?
" RWC"
:
""
,
(
temp
&
OHCI_CTRL_IR
)
?
" IR"
:
""
,
...
...
@@ -133,7 +156,8 @@ static void ohci_dump_status (struct ohci_hcd *controller)
);
temp
=
readl
(
&
regs
->
cmdstatus
);
dev_dbg
(
dev
,
"cmdstatus: 0x%08x SOC=%d%s%s%s%s
\n
"
,
temp
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"cmdstatus 0x%05x SOC=%d%s%s%s%s
\n
"
,
temp
,
(
temp
&
OHCI_SOC
)
>>
16
,
(
temp
&
OHCI_OCR
)
?
" OCR"
:
""
,
(
temp
&
OHCI_BLF
)
?
" BLF"
:
""
,
...
...
@@ -141,25 +165,59 @@ static void ohci_dump_status (struct ohci_hcd *controller)
(
temp
&
OHCI_HCR
)
?
" HCR"
:
""
);
ohci_dump_intr_mask
(
dev
,
"intrstatus"
,
readl
(
&
regs
->
intrstatus
));
ohci_dump_intr_mask
(
dev
,
"intrenable"
,
readl
(
&
regs
->
intrenable
));
ohci_dump_intr_mask
(
controller
,
"intrstatus"
,
readl
(
&
regs
->
intrstatus
),
next
,
size
);
ohci_dump_intr_mask
(
controller
,
"intrenable"
,
readl
(
&
regs
->
intrenable
),
next
,
size
);
// intrdisable always same as intrenable
// ohci_dump_intr_mask (dev, "intrdisable", readl (®s->intrdisable));
maybe_print_eds
(
dev
,
"ed_periodcurrent"
,
readl
(
&
regs
->
ed_periodcurrent
));
maybe_print_eds
(
controller
,
"ed_periodcurrent"
,
readl
(
&
regs
->
ed_periodcurrent
),
next
,
size
);
maybe_print_eds
(
dev
,
"ed_controlhead"
,
readl
(
&
regs
->
ed_controlhead
));
maybe_print_eds
(
dev
,
"ed_controlcurrent"
,
readl
(
&
regs
->
ed_controlcurrent
));
maybe_print_eds
(
controller
,
"ed_controlhead"
,
readl
(
&
regs
->
ed_controlhead
),
next
,
size
);
maybe_print_eds
(
controller
,
"ed_controlcurrent"
,
readl
(
&
regs
->
ed_controlcurrent
),
next
,
size
);
maybe_print_eds
(
dev
,
"ed_bulkhead"
,
readl
(
&
regs
->
ed_bulkhead
));
maybe_print_eds
(
dev
,
"ed_bulkcurrent"
,
readl
(
&
regs
->
ed_bulkcurrent
));
maybe_print_eds
(
controller
,
"ed_bulkhead"
,
readl
(
&
regs
->
ed_bulkhead
),
next
,
size
);
maybe_print_eds
(
controller
,
"ed_bulkcurrent"
,
readl
(
&
regs
->
ed_bulkcurrent
),
next
,
size
);
maybe_print_eds
(
dev
,
"donehead"
,
readl
(
&
regs
->
donehead
));
maybe_print_eds
(
controller
,
"donehead"
,
readl
(
&
regs
->
donehead
),
next
,
size
);
}
static
void
ohci_dump_roothub
(
struct
ohci_hcd
*
controller
,
int
verbose
)
#define dbg_port_sw(hc,num,value,next,size) \
ohci_dbg_sw (hc, next, size, \
"roothub.portstatus [%d] " \
"0x%08x%s%s%s%s%s%s%s%s%s%s%s%s\n", \
num, temp, \
(temp & RH_PS_PRSC) ? " PRSC" : "", \
(temp & RH_PS_OCIC) ? " OCIC" : "", \
(temp & RH_PS_PSSC) ? " PSSC" : "", \
(temp & RH_PS_PESC) ? " PESC" : "", \
(temp & RH_PS_CSC) ? " CSC" : "", \
\
(temp & RH_PS_LSDA) ? " LSDA" : "", \
(temp & RH_PS_PPS) ? " PPS" : "", \
(temp & RH_PS_PRS) ? " PRS" : "", \
(temp & RH_PS_POCI) ? " POCI" : "", \
(temp & RH_PS_PSS) ? " PSS" : "", \
\
(temp & RH_PS_PES) ? " PES" : "", \
(temp & RH_PS_CCS) ? " CCS" : "" \
);
static
void
ohci_dump_roothub
(
struct
ohci_hcd
*
controller
,
int
verbose
,
char
**
next
,
unsigned
*
size
)
{
__
u32
temp
,
ndp
,
i
;
u32
temp
,
ndp
,
i
;
temp
=
roothub_a
(
controller
);
if
(
temp
==
~
(
u32
)
0
)
...
...
@@ -167,8 +225,8 @@ static void ohci_dump_roothub (struct ohci_hcd *controller, int verbose)
ndp
=
(
temp
&
RH_A_NDP
);
if
(
verbose
)
{
dev_dbg
(
controller
->
hcd
.
controller
,
"roothub.a
:
%08x POTPGT=%d%s%s%s%s%s NDP=%d
\n
"
,
temp
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"roothub.a %08x POTPGT=%d%s%s%s%s%s NDP=%d
\n
"
,
temp
,
((
temp
&
RH_A_POTPGT
)
>>
24
)
&
0xff
,
(
temp
&
RH_A_NOCP
)
?
" NOCP"
:
""
,
(
temp
&
RH_A_OCPM
)
?
" OCPM"
:
""
,
...
...
@@ -178,15 +236,15 @@ static void ohci_dump_roothub (struct ohci_hcd *controller, int verbose)
ndp
);
temp
=
roothub_b
(
controller
);
dev_dbg
(
controller
->
hcd
.
controller
,
"roothub.b
:
%08x PPCM=%04x DR=%04x
\n
"
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"roothub.b %08x PPCM=%04x DR=%04x
\n
"
,
temp
,
(
temp
&
RH_B_PPCM
)
>>
16
,
(
temp
&
RH_B_DR
)
);
temp
=
roothub_status
(
controller
);
dev_dbg
(
controller
->
hcd
.
controller
,
"roothub.status
:
%08x%s%s%s%s%s%s
\n
"
,
ohci_dbg_sw
(
controller
,
next
,
size
,
"roothub.status %08x%s%s%s%s%s%s
\n
"
,
temp
,
(
temp
&
RH_HS_CRWE
)
?
" CRWE"
:
""
,
(
temp
&
RH_HS_OCIC
)
?
" OCIC"
:
""
,
...
...
@@ -196,34 +254,33 @@ static void ohci_dump_roothub (struct ohci_hcd *controller, int verbose)
(
temp
&
RH_HS_LPS
)
?
" LPS"
:
""
);
}
for
(
i
=
0
;
i
<
ndp
;
i
++
)
{
temp
=
roothub_portstatus
(
controller
,
i
);
dbg_port
(
controller
,
""
,
i
,
temp
);
dbg_port
_sw
(
controller
,
i
,
temp
,
next
,
size
);
}
}
static
void
ohci_dump
(
struct
ohci_hcd
*
controller
,
int
verbose
)
{
dev_dbg
(
controller
->
hcd
.
controller
,
"OHCI controller state
\n
"
);
ohci_dbg
(
controller
,
"OHCI controller state
\n
"
);
// dumps some of the state we know about
ohci_dump_status
(
controller
);
ohci_dump_status
(
controller
,
NULL
,
0
);
if
(
controller
->
hcca
)
dev_dbg
(
controller
->
hcd
.
controller
,
ohci_dbg
(
controller
,
"hcca frame #%04x
\n
"
,
controller
->
hcca
->
frame_no
);
ohci_dump_roothub
(
controller
,
1
);
ohci_dump_roothub
(
controller
,
1
,
NULL
,
0
);
}
static
const
char
data0
[]
=
"DATA0"
;
static
const
char
data1
[]
=
"DATA1"
;
static
void
ohci_dump_td
(
char
*
label
,
struct
td
*
td
)
static
void
ohci_dump_td
(
struct
ohci_hcd
*
ohci
,
char
*
label
,
struct
td
*
td
)
{
u32
tmp
=
le32_to_cpup
(
&
td
->
hwINFO
);
dbg
(
"%s td %p%s; urb %p index %d; hw next td %08x"
,
ohci_dbg
(
ohci
,
"%s td %p%s; urb %p index %d; hw next td %08x"
,
label
,
td
,
(
tmp
&
TD_DONE
)
?
" (DONE)"
:
""
,
td
->
urb
,
td
->
index
,
...
...
@@ -244,28 +301,28 @@ static void ohci_dump_td (char *label, struct td *td)
case
TD_DP_OUT
:
pid
=
"OUT"
;
break
;
default:
pid
=
"(bad pid)"
;
break
;
}
dbg
(
" info %08x CC=%x %s DI=%d %s %s"
,
tmp
,
ohci_dbg
(
ohci
,
" info %08x CC=%x %s DI=%d %s %s"
,
tmp
,
TD_CC_GET
(
tmp
),
/* EC, */
toggle
,
(
tmp
&
TD_DI
)
>>
21
,
pid
,
(
tmp
&
TD_R
)
?
"R"
:
""
);
cbp
=
le32_to_cpup
(
&
td
->
hwCBP
);
be
=
le32_to_cpup
(
&
td
->
hwBE
);
dbg
(
" cbp %08x be %08x (len %d)"
,
cbp
,
be
,
ohci_dbg
(
ohci
,
" cbp %08x be %08x (len %d)"
,
cbp
,
be
,
cbp
?
(
be
+
1
-
cbp
)
:
0
);
}
else
{
unsigned
i
;
dbg
(
" info %08x CC=%x FC=%d DI=%d SF=%04x"
,
tmp
,
ohci_dbg
(
ohci
,
" info %08x CC=%x FC=%d DI=%d SF=%04x"
,
tmp
,
TD_CC_GET
(
tmp
),
(
tmp
>>
24
)
&
0x07
,
(
tmp
&
TD_DI
)
>>
21
,
tmp
&
0x0000ffff
);
dbg
(
" bp0 %08x be %08x"
,
ohci_dbg
(
ohci
,
" bp0 %08x be %08x"
,
le32_to_cpup
(
&
td
->
hwCBP
)
&
~
0x0fff
,
le32_to_cpup
(
&
td
->
hwBE
));
for
(
i
=
0
;
i
<
MAXPSW
;
i
++
)
{
u16
psw
=
le16_to_cpup
(
&
td
->
hwPSW
[
i
]);
int
cc
=
(
psw
>>
12
)
&
0x0f
;
dbg
(
" psw [%d] = %2x, CC=%x %s=%d"
,
i
,
ohci_dbg
(
ohci
,
" psw [%d] = %2x, CC=%x %s=%d"
,
i
,
psw
,
cc
,
(
cc
>=
0x0e
)
?
"OFFSET"
:
"SIZE"
,
psw
&
0x0fff
);
...
...
@@ -280,8 +337,8 @@ ohci_dump_ed (struct ohci_hcd *ohci, char *label, struct ed *ed, int verbose)
u32
tmp
=
ed
->
hwINFO
;
char
*
type
=
""
;
dbg
(
"%s:
%s, ed %p state 0x%x type %s; next ed %08x"
,
ohci
->
hcd
.
self
.
bus_name
,
label
,
ohci_dbg
(
ohci
,
"
%s, ed %p state 0x%x type %s; next ed %08x"
,
label
,
ed
,
ed
->
state
,
edstring
(
ed
->
type
),
le32_to_cpup
(
&
ed
->
hwNextED
));
switch
(
tmp
&
(
ED_IN
|
ED_OUT
))
{
...
...
@@ -289,7 +346,8 @@ ohci_dump_ed (struct ohci_hcd *ohci, char *label, struct ed *ed, int verbose)
case
ED_IN
:
type
=
"-IN"
;
break
;
/* else from TDs ... control */
}
dbg
(
" info %08x MAX=%d%s%s%s%s EP=%d%s DEV=%d"
,
le32_to_cpu
(
tmp
),
ohci_dbg
(
ohci
,
" info %08x MAX=%d%s%s%s%s EP=%d%s DEV=%d"
,
le32_to_cpu
(
tmp
),
0x03ff
&
(
le32_to_cpu
(
tmp
)
>>
16
),
(
tmp
&
ED_DEQUEUE
)
?
" DQ"
:
""
,
(
tmp
&
ED_ISO
)
?
" ISO"
:
""
,
...
...
@@ -298,7 +356,7 @@ ohci_dump_ed (struct ohci_hcd *ohci, char *label, struct ed *ed, int verbose)
0x000f
&
(
le32_to_cpu
(
tmp
)
>>
7
),
type
,
0x007f
&
le32_to_cpu
(
tmp
));
dbg
(
" tds: head %08x %s%s tail %08x%s"
,
ohci_dbg
(
ohci
,
" tds: head %08x %s%s tail %08x%s"
,
tmp
=
le32_to_cpup
(
&
ed
->
hwHeadP
),
(
ed
->
hwHeadP
&
ED_C
)
?
data1
:
data0
,
(
ed
->
hwHeadP
&
ED_H
)
?
" HALT"
:
""
,
...
...
@@ -313,21 +371,33 @@ ohci_dump_ed (struct ohci_hcd *ohci, char *label, struct ed *ed, int verbose)
list_for_each
(
tmp
,
&
ed
->
td_list
)
{
struct
td
*
td
;
td
=
list_entry
(
tmp
,
struct
td
,
td_list
);
ohci_dump_td
(
" ->"
,
td
);
ohci_dump_td
(
ohci
,
" ->"
,
td
);
}
}
}
#define DRIVERFS_DEBUG_FILES
/* only on 2.5 versions */
#else
static
inline
void
ohci_dump
(
struct
ohci_hcd
*
controller
,
int
verbose
)
{}
#undef OHCI_VERBOSE_DEBUG
#endif
/* DEBUG */
/*-------------------------------------------------------------------------*/
#ifdef DRIVERFS_DEBUG_FILES
#ifdef STUB_DEBUG_FILES
static
inline
void
create_debug_files
(
struct
ohci_hcd
*
bus
)
{
}
static
inline
void
remove_debug_files
(
struct
ohci_hcd
*
bus
)
{
}
#else
static
inline
struct
ohci_hcd
*
dev_to_ohci
(
struct
device
*
dev
)
{
struct
usb_hcd
*
hcd
=
dev_get_drvdata
(
dev
);
return
hcd_to_ohci
(
hcd
);
}
static
ssize_t
show_list
(
struct
ohci_hcd
*
ohci
,
char
*
buf
,
size_t
count
,
struct
ed
*
ed
)
...
...
@@ -349,7 +419,7 @@ show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
struct
td
*
td
;
temp
=
snprintf
(
buf
,
size
,
"ed/%p %cs dev%d ep%d
-
%s max %d %08x%s%s %s"
,
"ed/%p %cs dev%d ep%d%s max %d %08x%s%s %s"
,
ed
,
(
info
&
ED_LOWSPEED
)
?
'l'
:
'f'
,
scratch
&
0x7f
,
...
...
@@ -465,7 +535,7 @@ show_periodic (struct device *dev, char *buf)
u32
scratch
=
cpu_to_le32p
(
&
ed
->
hwINFO
);
temp
=
snprintf
(
next
,
size
,
" (%cs dev%d%s ep%d
-
%s"
" (%cs dev%d%s ep%d%s"
" max %d %08x%s%s)"
,
(
info
&
ED_LOWSPEED
)
?
'l'
:
'f'
,
scratch
&
0x7f
,
...
...
@@ -508,26 +578,89 @@ static DEVICE_ATTR (periodic, S_IRUGO, show_periodic, NULL);
#undef DBG_SCHED_LIMIT
static
ssize_t
show_registers
(
struct
device
*
dev
,
char
*
buf
)
{
struct
ohci_hcd
*
ohci
;
struct
ohci_regs
*
regs
;
unsigned
long
flags
;
unsigned
temp
,
size
;
char
*
next
;
u32
rdata
;
ohci
=
dev_to_ohci
(
dev
);
regs
=
ohci
->
regs
;
next
=
buf
;
size
=
PAGE_SIZE
;
spin_lock_irqsave
(
&
ohci
->
lock
,
flags
);
/* dump driver info, then registers in spec order */
ohci_dbg_sw
(
ohci
,
&
next
,
&
size
,
"%s version "
DRIVER_VERSION
"
\n
"
,
hcd_name
);
ohci_dump_status
(
ohci
,
&
next
,
&
size
);
/* hcca */
if
(
ohci
->
hcca
)
ohci_dbg_sw
(
ohci
,
&
next
,
&
size
,
"hcca frame 0x%04x
\n
"
,
ohci
->
hcca
->
frame_no
);
/* other registers mostly affect frame timings */
rdata
=
readl
(
&
regs
->
fminterval
);
temp
=
snprintf
(
next
,
size
,
"fmintvl 0x%08x %sFSMPS=0x%04x FI=0x%04x
\n
"
,
rdata
,
(
rdata
>>
31
)
?
" FIT"
:
""
,
(
rdata
>>
16
)
&
0xefff
,
rdata
&
0xffff
);
size
-=
temp
;
next
+=
temp
;
rdata
=
readl
(
&
regs
->
fmremaining
);
temp
=
snprintf
(
next
,
size
,
"fmremaining 0x%08x %sFR=0x%04x
\n
"
,
rdata
,
(
rdata
>>
31
)
?
" FRT"
:
""
,
rdata
&
0x3fff
);
size
-=
temp
;
next
+=
temp
;
rdata
=
readl
(
&
regs
->
periodicstart
);
temp
=
snprintf
(
next
,
size
,
"periodicstart 0x%04x
\n
"
,
rdata
&
0x3fff
);
size
-=
temp
;
next
+=
temp
;
rdata
=
readl
(
&
regs
->
lsthresh
);
temp
=
snprintf
(
next
,
size
,
"lsthresh 0x%04x
\n
"
,
rdata
&
0x3fff
);
size
-=
temp
;
next
+=
temp
;
/* roothub */
ohci_dump_roothub
(
ohci
,
1
,
&
next
,
&
size
);
spin_unlock_irqrestore
(
&
ohci
->
lock
,
flags
);
return
PAGE_SIZE
-
size
;
}
static
DEVICE_ATTR
(
registers
,
S_IRUGO
,
show_registers
,
NULL
);
static
inline
void
create_debug_files
(
struct
ohci_hcd
*
bus
)
{
device_create_file
(
bus
->
hcd
.
controller
,
&
dev_attr_async
);
device_create_file
(
bus
->
hcd
.
controller
,
&
dev_attr_periodic
);
// registers
dev_dbg
(
bus
->
hcd
.
controller
,
"created debug files
\n
"
);
device_create_file
(
bus
->
hcd
.
controller
,
&
dev_attr_registers
);
ohci_dbg
(
bus
,
"created debug files
\n
"
);
}
static
inline
void
remove_debug_files
(
struct
ohci_hcd
*
bus
)
{
device_remove_file
(
bus
->
hcd
.
controller
,
&
dev_attr_async
);
device_remove_file
(
bus
->
hcd
.
controller
,
&
dev_attr_periodic
);
device_remove_file
(
bus
->
hcd
.
controller
,
&
dev_attr_registers
);
}
#else
/* empty stubs for creating those files */
static
inline
void
create_debug_files
(
struct
ohci_hcd
*
bus
)
{
}
static
inline
void
remove_debug_files
(
struct
ohci_hcd
*
bus
)
{
}
#endif
/* DRIVERFS_DEBUG_FILES */
#endif
/*-------------------------------------------------------------------------*/
drivers/usb/host/ohci-hcd.c
View file @
0f13a700
...
...
@@ -17,6 +17,8 @@
*
* History:
*
* 2003/02/24 show registers in sysfs (Kevin Brosius)
*
* 2002/09/03 get rid of ed hashtables, rework periodic scheduling and
* bandwidth accounting; if debugging, show schedules in driverfs
* 2002/07/19 fixes to management of ED and schedule state.
...
...
@@ -105,11 +107,10 @@
* TO DO:
*
* - "disabled" and "sleeping" should be in hcd->state
* - bandwidth alloc to generic code
* - lots more testing!!
*/
#define DRIVER_VERSION "200
2-Sep-17
"
#define DRIVER_VERSION "200
3 Feb 24
"
#define DRIVER_AUTHOR "Roman Weissgaerber, David Brownell"
#define DRIVER_DESC "USB 1.1 'Open' Host Controller (OHCI) Driver"
...
...
@@ -125,6 +126,8 @@
/*-------------------------------------------------------------------------*/
static
const
char
hcd_name
[]
=
"ohci-hcd"
;
#include "ohci.h"
static
inline
void
disable
(
struct
ohci_hcd
*
ohci
)
...
...
@@ -275,6 +278,7 @@ static int ohci_urb_dequeue (struct usb_hcd *hcd, struct urb *urb)
urb_print
(
urb
,
"UNLINK"
,
1
);
#endif
spin_lock_irqsave
(
&
ohci
->
lock
,
flags
);
if
(
!
ohci
->
disabled
)
{
urb_priv_t
*
urb_priv
;
...
...
@@ -282,21 +286,24 @@ static int ohci_urb_dequeue (struct usb_hcd *hcd, struct urb *urb)
* handed to us, flag it for unlink and giveback, and force
* some upcoming INTR_SF to call finish_unlinks()
*/
spin_lock_irqsave
(
&
ohci
->
lock
,
flags
);
urb_priv
=
urb
->
hcpriv
;
if
(
urb_priv
)
{
urb_priv
->
state
=
URB_DEL
;
if
(
urb_priv
->
ed
->
state
==
ED_OPER
)
start_urb_unlink
(
ohci
,
urb_priv
->
ed
);
}
spin_unlock_irqrestore
(
&
ohci
->
lock
,
flags
);
}
else
{
/*
* with HC dead, we won't respect hc queue pointers
* any more ... just clean up every urb's memory.
*/
finish_urb
(
ohci
,
urb
,
NULL
);
if
(
urb
->
hcpriv
)
{
spin_unlock
(
&
ohci
->
lock
);
finish_urb
(
ohci
,
urb
,
NULL
);
spin_lock
(
&
ohci
->
lock
);
}
}
spin_unlock_irqrestore
(
&
ohci
->
lock
,
flags
);
return
0
;
}
...
...
@@ -332,9 +339,11 @@ ohci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
td_free
(
ohci
,
ed
->
dummy
);
break
;
default:
err
(
"%s-%s ed %p (#%d) not unlinked; disconnect() bug? %d"
,
ohci
->
hcd
.
self
.
bus_name
,
udev
->
devpath
,
ed
,
i
,
ed
->
state
);
ohci_err
(
ohci
,
"dev %s ep%d-%s linked; disconnect() bug?
\n
"
,
udev
->
devpath
,
(
i
>>
1
)
&
0x0f
,
(
i
&
1
)
?
"out"
:
"in"
);
/* ED_OPER: some driver disconnect() is broken,
* it didn't even start its unlinks much less wait
* for their completions.
...
...
@@ -354,8 +363,10 @@ ohci_free_config (struct usb_hcd *hcd, struct usb_device *udev)
#ifdef DEBUG
/* a driver->disconnect() returned before its unlinks completed? */
if
(
in_interrupt
())
{
warn
(
"disconnect() bug for dev usb-%s-%s ep 0x%x"
,
ohci
->
hcd
.
self
.
bus_name
,
udev
->
devpath
,
i
);
ohci_warn
(
ohci
,
"driver disconnect() bug %s ep%d-%s
\n
"
,
udev
->
devpath
,
(
i
>>
1
)
&
0x0f
,
(
i
&
1
)
?
"out"
:
"in"
);
}
#endif
...
...
@@ -381,9 +392,12 @@ static int hc_reset (struct ohci_hcd *ohci)
{
u32
temp
;
/* SMM owns the HC? not for long! */
/* SMM owns the HC? not for long!
* On PA-RISC, PDC can leave IR set incorrectly; ignore it there.
*/
#ifndef __hppa__
if
(
readl
(
&
ohci
->
regs
->
control
)
&
OHCI_CTRL_IR
)
{
dev_dbg
(
ohci
->
hcd
.
controller
,
"USB HC TakeOver from BIOS/SMM
\n
"
);
ohci_dbg
(
ohci
,
"USB HC TakeOver from BIOS/SMM
\n
"
);
/* this timeout is arbitrary. we make it long, so systems
* depending on usb keyboards may be usable even if the
...
...
@@ -396,17 +410,18 @@ static int hc_reset (struct ohci_hcd *ohci)
while
(
readl
(
&
ohci
->
regs
->
control
)
&
OHCI_CTRL_IR
)
{
wait_ms
(
10
);
if
(
--
temp
==
0
)
{
dev_err
(
ohci
->
hcd
.
controller
,
"USB HC TakeOver failed!
\n
"
);
ohci_err
(
ohci
,
"USB HC TakeOver failed!
\n
"
);
return
-
1
;
}
}
}
#endif
/* Disable HC interrupts */
writel
(
OHCI_INTR_MIE
,
&
ohci
->
regs
->
intrdisable
);
dev_dbg
(
ohci
->
hcd
.
controller
,
"USB HC reset_hc %s: ctrl = 0x%x ;
\n
"
,
ohci
->
hcd
.
self
.
bus_name
,
ohci_dbg
(
ohci
,
"USB HC reset_hc %s: ctrl = 0x%x ;
\n
"
,
hcd_to_bus
(
&
ohci
->
hcd
)
->
bus_name
,
readl
(
&
ohci
->
regs
->
control
));
/* Reset USB (needed by some controllers); RemoteWakeupConnected
...
...
@@ -422,7 +437,7 @@ static int hc_reset (struct ohci_hcd *ohci)
temp
=
30
;
/* ... allow extra time */
while
((
readl
(
&
ohci
->
regs
->
cmdstatus
)
&
OHCI_HCR
)
!=
0
)
{
if
(
--
temp
==
0
)
{
dev_err
(
ohci
->
hcd
.
controller
,
"USB HC reset timed out!
"
);
ohci_err
(
ohci
,
"USB HC reset timed out!
\n
"
);
return
-
1
;
}
udelay
(
1
);
...
...
@@ -451,8 +466,9 @@ static int hc_reset (struct ohci_hcd *ohci)
*/
static
int
hc_start
(
struct
ohci_hcd
*
ohci
)
{
u32
mask
;
u32
mask
,
tmp
;
struct
usb_device
*
udev
;
struct
usb_bus
*
bus
;
spin_lock_init
(
&
ohci
->
lock
);
ohci
->
disabled
=
1
;
...
...
@@ -478,7 +494,7 @@ static int hc_start (struct ohci_hcd *ohci)
*/
if
((
readl
(
&
ohci
->
regs
->
fminterval
)
&
0x3fff0000
)
==
0
||
!
readl
(
&
ohci
->
regs
->
periodicstart
))
{
err
(
"%s init err"
,
ohci
->
hcd
.
self
.
bus_name
);
ohci_err
(
ohci
,
"init err
\n
"
);
return
-
EOVERFLOW
;
}
...
...
@@ -493,9 +509,20 @@ static int hc_start (struct ohci_hcd *ohci)
writel
(
mask
,
&
ohci
->
regs
->
intrstatus
);
writel
(
mask
,
&
ohci
->
regs
->
intrenable
);
/* hub power always on: required for AMD-756 and some Mac platforms */
writel
((
roothub_a
(
ohci
)
|
RH_A_NPS
)
&
~
(
RH_A_PSM
|
RH_A_OCPM
),
&
ohci
->
regs
->
roothub
.
a
);
/* handle root hub init quirks ... */
tmp
=
roothub_a
(
ohci
);
tmp
&=
~
(
RH_A_PSM
|
RH_A_OCPM
);
if
(
ohci
->
flags
&
OHCI_QUIRK_SUPERIO
)
{
/* NSC 87560 and maybe others */
tmp
|=
RH_A_NOCP
;
tmp
&=
~
(
RH_A_POTPGT
|
RH_A_NPS
);
}
else
{
/* hub power always on; required for AMD-756 and some
* Mac platforms, use this mode everywhere by default
*/
tmp
|=
RH_A_NPS
;
}
writel
(
tmp
,
&
ohci
->
regs
->
roothub
.
a
);
writel
(
RH_HS_LPSC
,
&
ohci
->
regs
->
roothub
.
status
);
writel
(
0
,
&
ohci
->
regs
->
roothub
.
b
);
...
...
@@ -503,7 +530,8 @@ static int hc_start (struct ohci_hcd *ohci)
mdelay
((
roothub_a
(
ohci
)
>>
23
)
&
0x1fe
);
/* connect the virtual root hub */
ohci
->
hcd
.
self
.
root_hub
=
udev
=
usb_alloc_dev
(
NULL
,
&
ohci
->
hcd
.
self
);
bus
=
hcd_to_bus
(
&
ohci
->
hcd
);
bus
->
root_hub
=
udev
=
usb_alloc_dev
(
NULL
,
bus
);
ohci
->
hcd
.
state
=
USB_STATE_READY
;
if
(
!
udev
)
{
disable
(
ohci
);
...
...
@@ -514,9 +542,9 @@ static int hc_start (struct ohci_hcd *ohci)
usb_connect
(
udev
);
udev
->
speed
=
USB_SPEED_FULL
;
if
(
usb_register_root_hub
(
udev
,
ohci
->
hcd
.
controller
)
!=
0
)
{
if
(
hcd_register_root
(
&
ohci
->
hcd
)
!=
0
)
{
usb_put_dev
(
udev
);
ohci
->
hcd
.
self
.
root_hub
=
NULL
;
bus
->
root_hub
=
NULL
;
disable
(
ohci
);
ohci
->
hc_control
&=
~
OHCI_CTRL_HCFS
;
writel
(
ohci
->
hc_control
,
&
ohci
->
regs
->
control
);
...
...
@@ -545,7 +573,7 @@ static void ohci_irq (struct usb_hcd *hcd, struct pt_regs *ptregs)
/* cardbus/... hardware gone before remove() */
}
else
if
((
ints
=
readl
(
&
regs
->
intrstatus
))
==
~
(
u32
)
0
)
{
disable
(
ohci
);
dbg
(
"%s device removed!"
,
hcd
->
self
.
bus_name
);
ohci_dbg
(
ohci
,
"device removed!
\n
"
);
return
;
/* interrupt for some other device? */
...
...
@@ -553,13 +581,9 @@ static void ohci_irq (struct usb_hcd *hcd, struct pt_regs *ptregs)
return
;
}
// dbg ("Interrupt: %x frame: %x", ints, le16_to_cpu (ohci->hcca->frame_no));
if
(
ints
&
OHCI_INTR_UE
)
{
disable
(
ohci
);
err
(
"OHCI Unrecoverable Error, %s disabled"
,
hcd
->
self
.
bus_name
);
ohci_err
(
ohci
,
"OHCI Unrecoverable Error, disabled
\n
"
);
// e.g. due to PCI Master/Target Abort
ohci_dump
(
ohci
,
1
);
...
...
@@ -579,7 +603,8 @@ static void ohci_irq (struct usb_hcd *hcd, struct pt_regs *ptregs)
*/
spin_lock
(
&
ohci
->
lock
);
if
(
ohci
->
ed_rm_list
)
finish_unlinks
(
ohci
,
le16_to_cpu
(
ohci
->
hcca
->
frame_no
),
ptregs
);
finish_unlinks
(
ohci
,
le16_to_cpu
(
ohci
->
hcca
->
frame_no
),
ptregs
);
if
((
ints
&
OHCI_INTR_SF
)
!=
0
&&
!
ohci
->
ed_rm_list
)
writel
(
OHCI_INTR_SF
,
&
regs
->
intrdisable
);
spin_unlock
(
&
ohci
->
lock
);
...
...
@@ -594,7 +619,7 @@ static void ohci_stop (struct usb_hcd *hcd)
{
struct
ohci_hcd
*
ohci
=
hcd_to_ohci
(
hcd
);
dev_dbg
(
hcd
->
controller
,
"stop %s controller%s
\n
"
,
ohci_dbg
(
ohci
,
"stop %s controller%s
\n
"
,
hcfs2string
(
ohci
->
hc_control
&
OHCI_CTRL_HCFS
),
ohci
->
disabled
?
" (disabled)"
:
""
);
...
...
@@ -629,8 +654,8 @@ static int hc_restart (struct ohci_hcd *ohci)
ohci
->
disabled
=
1
;
ohci
->
sleeping
=
0
;
if
(
ohci
->
hcd
.
self
.
root_hub
)
usb_disconnect
(
&
ohci
->
hcd
.
self
.
root_hub
);
if
(
hcd_to_bus
(
&
ohci
->
hcd
)
->
root_hub
)
usb_disconnect
(
&
hcd_to_bus
(
&
ohci
->
hcd
)
->
root_hub
);
/* empty the interrupt branches */
for
(
i
=
0
;
i
<
NUM_INTS
;
i
++
)
ohci
->
load
[
i
]
=
0
;
...
...
@@ -644,18 +669,16 @@ static int hc_restart (struct ohci_hcd *ohci)
ohci
->
ed_bulktail
=
NULL
;
if
((
temp
=
hc_reset
(
ohci
))
<
0
||
(
temp
=
hc_start
(
ohci
))
<
0
)
{
err
(
"can't restart %s, %d"
,
ohci
->
hcd
.
self
.
bus_name
,
temp
);
ohci_err
(
ohci
,
"can't restart, %d
\n
"
,
temp
);
return
temp
;
}
else
dbg
(
"restart %s completed"
,
ohci
->
hcd
.
self
.
bus_name
);
ohci_dbg
(
ohci
,
"restart complete
\n
"
);
return
0
;
}
#endif
/*-------------------------------------------------------------------------*/
static
const
char
hcd_name
[]
=
"ohci-hcd"
;
#define DRIVER_INFO DRIVER_VERSION " " DRIVER_DESC
MODULE_AUTHOR
(
DRIVER_AUTHOR
);
...
...
drivers/usb/host/ohci-hub.c
View file @
0f13a700
...
...
@@ -5,7 +5,6 @@
* (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net>
*
* This file is licenced under GPL
* $Id: ohci-hub.c,v 1.3 2002/03/22 16:04:54 dbrownell Exp $
*/
/*-------------------------------------------------------------------------*/
...
...
@@ -41,7 +40,7 @@ static u32 roothub_portstatus (struct ohci_hcd *hc, int i)
/*-------------------------------------------------------------------------*/
#define dbg_port(hc,label,num,value) \
dev_dbg (hc->hcd.controller
, \
ohci_dbg (hc
, \
"%s roothub.portstatus [%d] " \
"= 0x%08x%s%s%s%s%s%s%s%s%s%s%s%s\n", \
label, num, temp, \
...
...
@@ -76,9 +75,8 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf)
if
(
ports
>
MAX_ROOT_PORTS
)
{
if
(
ohci
->
disabled
)
return
-
ESHUTDOWN
;
err
(
"%s bogus NDP=%d, rereads as NDP=%d"
,
hcd
->
self
.
bus_name
,
ports
,
readl
(
&
ohci
->
regs
->
roothub
.
a
)
&
RH_A_NDP
);
ohci_err
(
ohci
,
"bogus NDP=%d, rereads as NDP=%d
\n
"
,
ports
,
readl
(
&
ohci
->
regs
->
roothub
.
a
)
&
RH_A_NDP
);
/* retry later; "should not happen" */
return
0
;
}
...
...
@@ -159,7 +157,7 @@ static int ohci_hub_control (
u16
wLength
)
{
struct
ohci_hcd
*
ohci
=
hcd_to_ohci
(
hcd
);
int
ports
=
hcd
->
self
.
root_hub
->
maxchild
;
int
ports
=
hcd
_to_bus
(
hcd
)
->
root_hub
->
maxchild
;
u32
temp
;
int
retval
=
0
;
...
...
drivers/usb/host/ohci-mem.c
View file @
0f13a700
...
...
@@ -115,8 +115,8 @@ td_free (struct ohci_hcd *hc, struct td *td)
prev
=
&
(
*
prev
)
->
td_hash
;
if
(
*
prev
)
*
prev
=
td
->
td_hash
;
else
dev_dbg
(
hc
->
hcd
.
controller
,
"bad
hash for td %p
\n
"
,
td
);
else
if
((
td
->
hwINFO
&
TD_DONE
)
!=
0
)
ohci_dbg
(
hc
,
"no
hash for td %p
\n
"
,
td
);
pci_pool_free
(
hc
->
td_cache
,
td
,
td
->
td_dma
);
}
...
...
drivers/usb/host/ohci-pci.c
View file @
0f13a700
...
...
@@ -29,17 +29,6 @@
/*-------------------------------------------------------------------------*/
struct
ohci_hcd
*
dev_to_ohci
(
struct
device
*
dev
)
{
struct
pci_dev
*
pdev
=
container_of
(
dev
,
struct
pci_dev
,
dev
);
struct
ohci_hcd
*
ohci
=
container_of
(
pci_get_drvdata
(
pdev
),
struct
ohci_hcd
,
hcd
);
return
ohci
;
}
/*-------------------------------------------------------------------------*/
static
int
__devinit
ohci_pci_start
(
struct
usb_hcd
*
hcd
)
{
...
...
@@ -55,22 +44,43 @@ ohci_pci_start (struct usb_hcd *hcd)
/* AMD 756, for most chips (early revs), corrupts register
* values on read ... so enable the vendor workaround.
*/
if
(
hcd
->
pdev
->
vendor
==
0x1022
if
(
hcd
->
pdev
->
vendor
==
PCI_VENDOR_ID_AMD
&&
hcd
->
pdev
->
device
==
0x740c
)
{
ohci
->
flags
=
OHCI_QUIRK_AMD756
;
info
(
"%s: AMD756 erratum 4 workaround"
,
hcd
->
self
.
bus_name
);
ohci_info
(
ohci
,
"AMD756 erratum 4 workaround
\n
"
);
}
/* FIXME for some of the early AMD 760 southbridges, OHCI
* won't work at all. blacklist them.
*/
/* Apple's OHCI driver has a lot of bizarre workarounds
* for this chip. Evidently control and bulk lists
* can get confused. (B&W G3 models, and ...)
*/
else
if
(
hcd
->
pdev
->
vendor
==
0x1045
else
if
(
hcd
->
pdev
->
vendor
==
PCI_VENDOR_ID_OPTI
&&
hcd
->
pdev
->
device
==
0xc861
)
{
info
(
"%s: WARNING: OPTi workarounds unavailable"
,
hcd
->
self
.
bus_name
);
ohci_info
(
ohci
,
"WARNING: OPTi workarounds unavailable
\n
"
);
}
/* Check for NSC87560. We have to look at the bridge (fn1) to
* identify the USB (fn2). This quirk might apply to more or
* even all NSC stuff.
*/
else
if
(
hcd
->
pdev
->
vendor
==
PCI_VENDOR_ID_NS
)
{
struct
pci_dev
*
b
,
*
hc
;
hc
=
hcd
->
pdev
;
b
=
pci_find_slot
(
hc
->
bus
->
number
,
PCI_DEVFN
(
PCI_SLOT
(
hc
->
devfn
),
1
));
if
(
b
&&
b
->
device
==
PCI_DEVICE_ID_NS_87560_LIO
&&
b
->
vendor
==
PCI_VENDOR_ID_NS
)
{
ohci
->
flags
|=
OHCI_QUIRK_SUPERIO
;
ohci_info
(
ohci
,
"Using NSC SuperIO setup
\n
"
);
}
}
}
memset
(
ohci
->
hcca
,
0
,
sizeof
(
struct
ohci_hcca
));
...
...
@@ -86,7 +96,7 @@ ohci_pci_start (struct usb_hcd *hcd)
}
if
(
hc_start
(
ohci
)
<
0
)
{
err
(
"can't start %s"
,
ohci
->
hcd
.
self
.
bus_name
);
ohci_err
(
ohci
,
"can't start
\n
"
);
ohci_stop
(
hcd
);
return
-
EBUSY
;
}
...
...
@@ -106,13 +116,13 @@ static int ohci_pci_suspend (struct usb_hcd *hcd, u32 state)
u16
cmd
;
if
((
ohci
->
hc_control
&
OHCI_CTRL_HCFS
)
!=
OHCI_USB_OPER
)
{
dbg
(
"can't suspend %s (state is %s)"
,
hcd
->
self
.
bus_name
,
ohci_dbg
(
ohci
,
"can't suspend (state is %s)
\n
"
,
hcfs2string
(
ohci
->
hc_control
&
OHCI_CTRL_HCFS
));
return
-
EIO
;
}
/* act as if usb suspend can always be used */
dbg
(
"%s: suspend to %d"
,
hcd
->
self
.
bus_name
,
state
);
ohci_dbg
(
ohci
,
"suspend to %d
\n
"
,
state
);
ohci
->
sleeping
=
1
;
/* First stop processing */
...
...
@@ -147,16 +157,16 @@ static int ohci_pci_suspend (struct usb_hcd *hcd, u32 state)
switch
(
readl
(
&
ohci
->
regs
->
control
)
&
OHCI_CTRL_HCFS
)
{
case
OHCI_USB_RESET
:
dbg
(
"%s suspend->reset ?"
,
hcd
->
self
.
bus_name
);
ohci_dbg
(
ohci
,
"suspend->reset ?
\n
"
);
break
;
case
OHCI_USB_RESUME
:
dbg
(
"%s suspend->resume ?"
,
hcd
->
self
.
bus_name
);
ohci_dbg
(
ohci
,
"suspend->resume ?
\n
"
);
break
;
case
OHCI_USB_OPER
:
dbg
(
"%s suspend->operational ?"
,
hcd
->
self
.
bus_name
);
ohci_dbg
(
ohci
,
"suspend->operational ?
\n
"
);
break
;
case
OHCI_USB_SUSPEND
:
dbg
(
"%s suspended"
,
hcd
->
self
.
bus_name
);
ohci_dbg
(
ohci
,
"suspended
\n
"
);
break
;
}
...
...
@@ -204,7 +214,7 @@ static int ohci_pci_resume (struct usb_hcd *hcd)
#ifdef DEBUG
/* the registers may look crazy here */
ohci_dump_status
(
ohci
);
ohci_dump_status
(
ohci
,
0
,
0
);
#endif
/* Re-enable bus mastering */
...
...
@@ -213,13 +223,13 @@ static int ohci_pci_resume (struct usb_hcd *hcd)
switch
(
temp
)
{
case
OHCI_USB_RESET
:
// lost power
info
(
"USB restart: %s"
,
hcd
->
self
.
bus_name
);
ohci_info
(
ohci
,
"USB restart
\n
"
);
retval
=
hc_restart
(
ohci
);
break
;
case
OHCI_USB_SUSPEND
:
// host wakeup
case
OHCI_USB_RESUME
:
// remote wakeup
info
(
"USB continue: %s from %s wakeup"
,
hcd
->
self
.
bus_name
,
ohci_info
(
ohci
,
"USB continue from %s wakeup
\n
"
,
(
temp
==
OHCI_USB_SUSPEND
)
?
"host"
:
"remote"
);
ohci
->
hc_control
=
OHCI_USB_RESUME
;
...
...
@@ -232,7 +242,7 @@ static int ohci_pci_resume (struct usb_hcd *hcd)
temp
=
readl
(
&
ohci
->
regs
->
control
);
temp
=
ohci
->
hc_control
&
OHCI_CTRL_HCFS
;
if
(
temp
!=
OHCI_USB_RESUME
)
{
err
(
"controller %s won't resume"
,
hcd
->
self
.
bus_name
);
ohci_err
(
ohci
,
"controller won't resume
\n
"
);
ohci
->
disabled
=
1
;
retval
=
-
EIO
;
break
;
...
...
@@ -278,11 +288,12 @@ static int ohci_pci_resume (struct usb_hcd *hcd)
writel
(
OHCI_BLF
|
OHCI_CLF
,
&
ohci
->
regs
->
cmdstatus
);
// ohci_dump_status (ohci);
dbg
(
"sleeping = %d, disabled = %d"
,
ohci
->
sleeping
,
ohci
->
disabled
);
ohci_dbg
(
ohci
,
"sleeping = %d, disabled = %d
\n
"
,
ohci
->
sleeping
,
ohci
->
disabled
);
break
;
default:
warn
(
"odd PCI resume for %s"
,
hcd
->
self
.
bus_name
);
ohci_warn
(
ohci
,
"odd PCI resume
\n
"
);
}
return
retval
;
}
...
...
@@ -373,11 +384,11 @@ static struct pci_driver ohci_pci_driver = {
static
int
__init
ohci_hcd_pci_init
(
void
)
{
dbg
(
DRIVER_INFO
" (PCI)"
);
printk
(
KERN_DEBUG
"%s: "
DRIVER_INFO
" (PCI)
\n
"
,
hcd_name
);
if
(
usb_disabled
())
return
-
ENODEV
;
dbg
(
"block sizes: ed %d td %d"
,
printk
(
KERN_DEBUG
"%s: block sizes: ed %d td %d
\n
"
,
hcd_name
,
sizeof
(
struct
ed
),
sizeof
(
struct
td
));
return
pci_module_init
(
&
ohci_pci_driver
);
}
...
...
drivers/usb/host/ohci-q.c
View file @
0f13a700
...
...
@@ -30,29 +30,28 @@ static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv)
/*
* URB goes back to driver, and isn't reissued.
* It's completely gone from HC data structures.
* PRECONDITION: no locks held (Giveback can call into HCD.)
* PRECONDITION: no locks held
, irqs blocked
(Giveback can call into HCD.)
*/
static
void
finish_urb
(
struct
ohci_hcd
*
ohci
,
struct
urb
*
urb
,
struct
pt_regs
*
regs
)
static
void
finish_urb
(
struct
ohci_hcd
*
ohci
,
struct
urb
*
urb
,
struct
pt_regs
*
regs
)
{
unsigned
long
flags
;
// ASSERT (urb->hcpriv != 0);
urb_free_priv
(
ohci
,
urb
->
hcpriv
);
urb
->
hcpriv
=
NULL
;
spin_lock
_irqsave
(
&
urb
->
lock
,
flags
);
spin_lock
(
&
urb
->
lock
);
if
(
likely
(
urb
->
status
==
-
EINPROGRESS
))
urb
->
status
=
0
;
spin_unlock
_irqrestore
(
&
urb
->
lock
,
flags
);
spin_unlock
(
&
urb
->
lock
);
// what lock protects these?
switch
(
usb_pipetype
(
urb
->
pipe
))
{
case
PIPE_ISOCHRONOUS
:
ohci
->
hcd
.
self
.
bandwidth_isoc_reqs
--
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_isoc_reqs
--
;
break
;
case
PIPE_INTERRUPT
:
ohci
->
hcd
.
self
.
bandwidth_int_reqs
--
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_int_reqs
--
;
break
;
}
...
...
@@ -110,12 +109,9 @@ static void periodic_link (struct ohci_hcd *ohci, struct ed *ed)
{
unsigned
i
;
#ifdef OHCI_VERBOSE_DEBUG
dbg
(
"%s: link %sed %p branch %d [%dus.], interval %d"
,
ohci
->
hcd
.
self
.
bus_name
,
ohci_vdbg
(
ohci
,
"link %sed %p branch %d [%dus.], interval %d
\n
"
,
(
ed
->
hwINFO
&
ED_ISO
)
?
"iso "
:
""
,
ed
,
ed
->
branch
,
ed
->
load
,
ed
->
interval
);
#endif
for
(
i
=
ed
->
branch
;
i
<
NUM_INTS
;
i
+=
ed
->
interval
)
{
struct
ed
**
prev
=
&
ohci
->
periodic
[
i
];
...
...
@@ -143,7 +139,7 @@ static void periodic_link (struct ohci_hcd *ohci, struct ed *ed)
}
ohci
->
load
[
i
]
+=
ed
->
load
;
}
ohci
->
hcd
.
self
.
bandwidth_allocated
+=
ed
->
load
/
ed
->
interval
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_allocated
+=
ed
->
load
/
ed
->
interval
;
}
/* link an ed into one of the HC chains */
...
...
@@ -206,7 +202,7 @@ static int ed_schedule (struct ohci_hcd *ohci, struct ed *ed)
default:
branch
=
balance
(
ohci
,
ed
->
interval
,
ed
->
load
);
if
(
branch
<
0
)
{
dev_dbg
(
ohci
->
hcd
.
controller
,
ohci_dbg
(
ohci
,
"ERR %d, interval %d msecs, load %d
\n
"
,
branch
,
ed
->
interval
,
ed
->
load
);
// FIXME if there are TDs queued, fail them!
...
...
@@ -244,14 +240,11 @@ static void periodic_unlink (struct ohci_hcd *ohci, struct ed *ed)
}
ohci
->
load
[
i
]
-=
ed
->
load
;
}
ohci
->
hcd
.
self
.
bandwidth_allocated
-=
ed
->
load
/
ed
->
interval
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_allocated
-=
ed
->
load
/
ed
->
interval
;
#ifdef OHCI_VERBOSE_DEBUG
dbg
(
"%s: unlink %sed %p branch %d [%dus.], interval %d"
,
ohci
->
hcd
.
self
.
bus_name
,
ohci_vdbg
(
ohci
,
"unlink %sed %p branch %d [%dus.], interval %d
\n
"
,
(
ed
->
hwINFO
&
ED_ISO
)
?
"iso "
:
""
,
ed
,
ed
->
branch
,
ed
->
load
,
ed
->
interval
);
#endif
}
/* unlink an ed from one of the HC chains.
...
...
@@ -576,7 +569,7 @@ static void td_submit_urb (
*/
case
PIPE_INTERRUPT
:
/* ... and periodic urbs have extra accounting */
ohci
->
hcd
.
self
.
bandwidth_int_reqs
++
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_int_reqs
++
;
/* FALLTHROUGH */
case
PIPE_BULK
:
info
=
is_out
...
...
@@ -644,7 +637,7 @@ static void td_submit_urb (
data
+
urb
->
iso_frame_desc
[
cnt
].
offset
,
urb
->
iso_frame_desc
[
cnt
].
length
,
urb
,
cnt
);
}
ohci
->
hcd
.
self
.
bandwidth_isoc_reqs
++
;
hcd_to_bus
(
&
ohci
->
hcd
)
->
bandwidth_isoc_reqs
++
;
break
;
}
// ASSERT (urb_priv->length == cnt);
...
...
@@ -687,11 +680,10 @@ static void td_done (struct urb *urb, struct td *td)
urb
->
iso_frame_desc
[
td
->
index
].
actual_length
=
dlen
;
urb
->
iso_frame_desc
[
td
->
index
].
status
=
cc_to_error
[
cc
];
#ifdef VERBOSE_DEBUG
if
(
cc
!=
TD_CC_NOERROR
)
dbg
(
" urb %p iso TD %p (%d) len %d CC %d"
,
ohci_vdbg
(
ohci
,
"urb %p iso td %p (%d) len %d cc %d
\n
"
,
urb
,
td
,
1
+
td
->
index
,
dlen
,
cc
);
#endif
/* BULK, INT, CONTROL ... drivers see aggregate length/status,
* except that "setup" bytes aren't counted and "short" transfers
...
...
@@ -730,13 +722,12 @@ static void td_done (struct urb *urb, struct td *td)
-
td
->
data_dma
;
}
#ifdef VERBOSE_DEBUG
if
(
cc
!=
TD_CC_NOERROR
&&
cc
<
0x0E
)
dbg
(
" urb %p TD %p (%d) CC %d, len=%d/%d"
,
ohci_vdbg
(
ohci
,
"urb %p td %p (%d) cc %d, len=%d/%d
\n
"
,
urb
,
td
,
1
+
td
->
index
,
cc
,
urb
->
actual_length
,
urb
->
transfer_buffer_length
);
#endif
}
}
...
...
@@ -791,14 +782,18 @@ ed_halted (struct ohci_hcd *ohci, struct td *td, int cc, struct td *rev)
ed
->
hwHeadP
=
next
->
hwNextTD
|
toggle
;
}
/* help for troubleshooting: */
dev_dbg
(
&
urb
->
dev
->
dev
,
"urb %p usb-%s-%s ep-%d-%s cc %d --> status %d
\n
"
,
urb
,
urb
->
dev
->
bus
->
bus_name
,
urb
->
dev
->
devpath
,
usb_pipeendpoint
(
urb
->
pipe
),
usb_pipein
(
urb
->
pipe
)
?
"IN"
:
"OUT"
,
cc
,
cc_to_error
[
cc
]);
/* help for troubleshooting: report anything that
* looks odd ... that doesn't include protocol stalls
* (or maybe some other things)
*/
if
(
cc
!=
TD_CC_STALL
||
!
usb_pipecontrol
(
urb
->
pipe
))
ohci_dbg
(
ohci
,
"urb %p path %s ep%d%s %08x cc %d --> status %d
\n
"
,
urb
,
urb
->
dev
->
devpath
,
usb_pipeendpoint
(
urb
->
pipe
),
usb_pipein
(
urb
->
pipe
)
?
"in"
:
"out"
,
le32_to_cpu
(
td
->
hwINFO
),
cc
,
cc_to_error
[
cc
]);
return
rev
;
}
...
...
@@ -826,8 +821,7 @@ static struct td *dl_reverse_done_list (struct ohci_hcd *ohci)
td
=
dma_to_td
(
ohci
,
td_dma
);
if
(
!
td
)
{
err
(
"%s bad entry %8x"
,
ohci
->
hcd
.
self
.
bus_name
,
td_dma
);
ohci_err
(
ohci
,
"bad entry %8x
\n
"
,
td_dma
);
break
;
}
...
...
@@ -855,7 +849,8 @@ static struct td *dl_reverse_done_list (struct ohci_hcd *ohci)
#define tick_before(t1,t2) ((((s16)(t1))-((s16)(t2))) < 0)
/* there are some urbs/eds to unlink; called in_irq(), with HCD locked */
static
void
finish_unlinks
(
struct
ohci_hcd
*
ohci
,
u16
tick
,
struct
pt_regs
*
regs
)
static
void
finish_unlinks
(
struct
ohci_hcd
*
ohci
,
u16
tick
,
struct
pt_regs
*
regs
)
{
struct
ed
*
ed
,
**
last
;
...
...
@@ -983,7 +978,8 @@ static void finish_unlinks (struct ohci_hcd *ohci, u16 tick, struct pt_regs *reg
* path is finish_unlinks(), which unlinks URBs using ed_rm_list, instead of
* scanning the (re-reversed) donelist as this does.
*/
static
void
dl_done_list
(
struct
ohci_hcd
*
ohci
,
struct
td
*
td
,
struct
pt_regs
*
regs
)
static
void
dl_done_list
(
struct
ohci_hcd
*
ohci
,
struct
td
*
td
,
struct
pt_regs
*
regs
)
{
unsigned
long
flags
;
...
...
@@ -1000,9 +996,9 @@ static void dl_done_list (struct ohci_hcd *ohci, struct td *td, struct pt_regs *
/* If all this urb's TDs are done, call complete() */
if
(
urb_priv
->
td_cnt
==
urb_priv
->
length
)
{
spin_unlock
_irqrestore
(
&
ohci
->
lock
,
flags
);
spin_unlock
(
&
ohci
->
lock
);
finish_urb
(
ohci
,
urb
,
regs
);
spin_lock
_irqsave
(
&
ohci
->
lock
,
flags
);
spin_lock
(
&
ohci
->
lock
);
}
/* clean schedule: unlink EDs that are no longer busy */
...
...
drivers/usb/host/ohci-sa1111.c
View file @
0f13a700
...
...
@@ -3,7 +3,7 @@
*
* (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at>
* (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net>
* (C) Hewlett-Packard Company
* (C)
Copyright 2002
Hewlett-Packard Company
*
* SA1111 Bus Glue
*
...
...
@@ -27,14 +27,6 @@ extern int usb_disabled(void);
/*-------------------------------------------------------------------------*/
struct
ohci_hcd
*
dev_to_ohci
(
struct
device
*
dev
)
{
struct
usb_hcd
*
hcd
=
dev
->
driver_data
;
return
hcd_to_ohci
(
hcd
);
}
/*-------------------------------------------------------------------------*/
static
void
sa1111_start_hc
(
struct
sa1111_dev
*
dev
)
{
unsigned
int
usb_rst
=
0
;
...
...
drivers/usb/host/ohci.h
View file @
0f13a700
...
...
@@ -372,6 +372,7 @@ struct ohci_hcd {
unsigned
long
flags
;
/* for HC bugs */
#define OHCI_QUIRK_AMD756 0x01
/* erratum #4 */
#define OHCI_QUIRK_SUPERIO 0x02
/* natsemi */
// there are also chip quirks/bugs in init logic
/*
...
...
@@ -382,4 +383,24 @@ struct ohci_hcd {
#define hcd_to_ohci(hcd_ptr) container_of(hcd_ptr, struct ohci_hcd, hcd)
struct
ohci_hcd
*
dev_to_ohci
(
struct
device
*
);
/*-------------------------------------------------------------------------*/
#ifndef DEBUG
#define STUB_DEBUG_FILES
#endif
/* DEBUG */
#define ohci_dbg(ohci, fmt, args...) \
dev_dbg ((ohci)->hcd.controller , fmt , ## args )
#define ohci_err(ohci, fmt, args...) \
dev_err ((ohci)->hcd.controller , fmt , ## args )
#define ohci_info(ohci, fmt, args...) \
dev_info ((ohci)->hcd.controller , fmt , ## args )
#define ohci_warn(ohci, fmt, args...) \
dev_warn ((ohci)->hcd.controller , fmt , ## args )
#ifdef OHCI_VERBOSE_DEBUG
# define ohci_vdbg ohci_dbg
#else
# define ohci_vdbg(ohci, fmt, args...) do { } while (0)
#endif
drivers/usb/image/scanner.c
View file @
0f13a700
/* -*- linux-c -*- */
/*
* Driver for USB Scanners (linux-2.5.6
0
)
* Driver for USB Scanners (linux-2.5.6
4
)
*
* Copyright (C) 1999, 2000, 2001, 2002 David E. Nelson
* Copyright (C) 2002, 2003 Henning Meier-Geinitz
...
...
@@ -346,6 +346,11 @@
* - Print ids and device number when a device was detected.
* - Don't print errors when the device is busy.
*
* 0.4.11 2003-02-25
* - Added vendor/product ids for Artec, Avision, Brother, Medion, Primax,
* Prolink, Fujitsu, Plustek, and SYSCAN scanners.
* - Fixed generation of devfs names if dynamic minors are disabled.
*
* TODO
* - Performance
* - Select/poll methods
...
...
@@ -1052,7 +1057,7 @@ probe_scanner(struct usb_interface *intf,
scn
->
scn_minor
=
scn_minor
;
scn
->
isopen
=
0
;
sprintf
(
name
,
"scanner%d"
,
scn
->
scn_minor
);
sprintf
(
name
,
"scanner%d"
,
scn
->
scn_minor
-
SCN_BASE_MNR
);
scn
->
devfs
=
devfs_register
(
usb_devfs_handle
,
name
,
DEVFS_FL_DEFAULT
,
USB_MAJOR
,
...
...
drivers/usb/image/scanner.h
View file @
0f13a700
/*
* Driver for USB Scanners (linux-2.5.6
0
)
* Driver for USB Scanners (linux-2.5.6
4
)
*
* Copyright (C) 1999, 2000, 2001, 2002 David E. Nelson
* Previously maintained by Brian Beattie
...
...
@@ -44,7 +44,7 @@
// #define DEBUG
#define DRIVER_VERSION "0.4.1
0
"
#define DRIVER_VERSION "0.4.1
1
"
#define DRIVER_DESC "USB Scanner Driver"
#include <linux/usb.h>
...
...
@@ -99,7 +99,13 @@ static struct usb_device_id scanner_device_ids [] = {
/* Artec */
{
USB_DEVICE
(
0x05d8
,
0x4001
)
},
/* Ultima 2000 */
{
USB_DEVICE
(
0x05d8
,
0x4002
)
},
/* Ultima 2000 (GT6801 based) */
{
USB_DEVICE
(
0x05d8
,
0x4003
)
},
/* E+ 48U */
{
USB_DEVICE
(
0x05d8
,
0x4004
)
},
/* E+ Pro */
/* Avision */
{
USB_DEVICE
(
0x0638
,
0x0a10
)
},
/* iVina FB1600 (=Umax Astra 4500) */
/* Benq: see Acer */
/* Brother */
{
USB_DEVICE
(
0x04f9
,
0x0111
)
},
/* MFC 6800 */
/* Canon */
{
USB_DEVICE
(
0x04a9
,
0x2201
)
},
/* CanoScan FB320U */
{
USB_DEVICE
(
0x04a9
,
0x2202
)
},
/* CanoScan FB620U */
...
...
@@ -117,6 +123,10 @@ static struct usb_device_id scanner_device_ids [] = {
/* Compaq */
{
USB_DEVICE
(
0x049f
,
0x0021
)
},
/* S200 */
/* Epson -- See Seiko/Epson below */
/* Fujitsu */
{
USB_DEVICE
(
0x04c5
,
0x1041
)
},
/* fi-4220c USB/SCSI info:mza@mu-tec.de */
{
USB_DEVICE
(
0x04c5
,
0x1042
)
},
/* fi-4120c USB/SCSI info:mza@mu-tec.de */
{
USB_DEVICE
(
0x04c5
,
0x1029
)
},
/* fi-4010c USB AVision info:mza@mu-tec.de */
/* Genius */
{
USB_DEVICE
(
0x0458
,
0x2001
)
},
/* ColorPage Vivid Pro */
{
USB_DEVICE
(
0x0458
,
0x2007
)
},
/* ColorPage HR6 V2 */
...
...
@@ -149,6 +159,8 @@ static struct usb_device_id scanner_device_ids [] = {
{
USB_DEVICE
(
0x0638
,
0x0268
)
},
/* 1200U */
/* Lexmark */
{
USB_DEVICE
(
0x043d
,
0x002d
)
},
/* X70/X73 */
/* Medion */
{
USB_DEVICE
(
0x0461
,
0x0377
)
},
/* MD 5345 - repackaged Primax? */
/* Memorex */
{
USB_DEVICE
(
0x0461
,
0x0346
)
},
/* 6136u - repackaged Primax ? */
/* Microtek */
...
...
@@ -202,7 +214,8 @@ static struct usb_device_id scanner_device_ids [] = {
{
USB_DEVICE
(
0x07b3
,
0x0015
)
},
/* OpticPro U24 */
{
USB_DEVICE
(
0x07b3
,
0x0016
)
},
/* Unknown */
{
USB_DEVICE
(
0x07b3
,
0x0017
)
},
/* OpticPro UT12/UT16/UT24 */
{
USB_DEVICE
(
0x07b3
,
0x0401
)
},
/* OpticPro 1248U */
{
USB_DEVICE
(
0x07b3
,
0x0400
)
},
/* OpticPro 1248U */
{
USB_DEVICE
(
0x07b3
,
0x0401
)
},
/* OpticPro 1248U (another one) */
/* Primax/Colorado */
{
USB_DEVICE
(
0x0461
,
0x0300
)
},
/* G2-300 #1 */
{
USB_DEVICE
(
0x0461
,
0x0301
)
},
/* G2E-300 #1 */
...
...
@@ -210,12 +223,15 @@ static struct usb_device_id scanner_device_ids [] = {
{
USB_DEVICE
(
0x0461
,
0x0303
)
},
/* G2E-300 #2 */
{
USB_DEVICE
(
0x0461
,
0x0340
)
},
/* Colorado USB 9600 */
{
USB_DEVICE
(
0x0461
,
0x0341
)
},
/* Colorado 600u */
{
USB_DEVICE
(
0x0461
,
0x0347
)
},
/* Primascan Colorado 2600u */
{
USB_DEVICE
(
0x0461
,
0x0360
)
},
/* Colorado USB 19200 */
{
USB_DEVICE
(
0x0461
,
0x0361
)
},
/* Colorado 1200u */
{
USB_DEVICE
(
0x0461
,
0x0380
)
},
/* G2-600 #1 */
{
USB_DEVICE
(
0x0461
,
0x0381
)
},
/* ReadyScan 636i */
{
USB_DEVICE
(
0x0461
,
0x0382
)
},
/* G2-600 #2 */
{
USB_DEVICE
(
0x0461
,
0x0383
)
},
/* G2E-600 */
/* Prolink */
{
USB_DEVICE
(
0x06dc
,
0x0014
)
},
/* Winscan Pro 2448U */
/* Relisis */
// { USB_DEVICE(0x0475, 0x0103) }, /* Episode - undetected endpoint */
/* Seiko/Epson Corp. */
...
...
@@ -241,6 +257,8 @@ static struct usb_device_id scanner_device_ids [] = {
{
USB_DEVICE
(
0x04b8
,
0x011e
)
},
/* Perfection 1660 Photo */
{
USB_DEVICE
(
0x04b8
,
0x0801
)
},
/* Stylus CX5200 */
{
USB_DEVICE
(
0x04b8
,
0x0802
)
},
/* Stylus CX3200 */
/* SYSCAN */
{
USB_DEVICE
(
0x0a82
,
0x4600
)
},
/* TravelScan 460/464 */
/* Umax */
{
USB_DEVICE
(
0x1606
,
0x0010
)
},
/* Astra 1220U */
{
USB_DEVICE
(
0x1606
,
0x0030
)
},
/* Astra 2000U */
...
...
drivers/usb/input/Kconfig
View file @
0f13a700
...
...
@@ -159,6 +159,20 @@ config USB_WACOM
The module will be called wacom. If you want to compile it as a
module, say M here and read <file:Documentation/modules.txt>.
config USB_KBTAB
tristate "KB Gear JamStudio tablet support"
depends on USB && INPUT
help
Say Y here if you want to use the USB version of the KB Gear
JamStudio tablet. Make sure to say Y to "Mouse support"
(CONFIG_INPUT_MOUSEDEV) and/or "Event interface support"
(CONFIG_INPUT_EVDEV) as well.
This driver is also available as a module ( = code which can be
inserted in and removed from the running kernel whenever you want).
The module will be called kbtab.o. If you want to compile it as a
module, say M here and read <file:Documentation/modules.txt>.
config USB_POWERMATE
tristate "Griffin PowerMate and Contour Jog support"
depends on USB && INPUT
...
...
drivers/usb/input/Makefile
View file @
0f13a700
...
...
@@ -31,5 +31,6 @@ obj-$(CONFIG_USB_HID) += hid.o
obj-$(CONFIG_USB_KBD)
+=
usbkbd.o
obj-$(CONFIG_USB_MOUSE)
+=
usbmouse.o
obj-$(CONFIG_USB_WACOM)
+=
wacom.o
obj-$(CONFIG_USB_KBTAB)
+=
kbtab.o
obj-$(CONFIG_USB_POWERMATE)
+=
powermate.o
obj-$(CONFIG_USB_XPAD)
+=
xpad.o
drivers/usb/input/hid-core.c
View file @
0f13a700
...
...
@@ -1304,6 +1304,10 @@ void hid_init_reports(struct hid_device *hid)
#define USB_DEVICE_ID_WACOM_PL 0x0030
#define USB_DEVICE_ID_WACOM_INTUOS2 0x0040
#define USB_VENDOR_ID_KBGEAR 0x084e
#define USB_DEVICE_ID_KBGEAR_JAMSTUDIO 0x1001
#define USB_VENDOR_ID_AIPTEK 0x08ca
#define USB_DEVICE_ID_AIPTEK_6000 0x0020
...
...
@@ -1355,6 +1359,7 @@ struct hid_blacklist {
{
USB_VENDOR_ID_WACOM
,
USB_DEVICE_ID_WACOM_INTUOS2
+
3
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_WACOM
,
USB_DEVICE_ID_WACOM_INTUOS2
+
4
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_WACOM
,
USB_DEVICE_ID_WACOM_INTUOS2
+
5
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_KBGEAR
,
USB_DEVICE_ID_KBGEAR_JAMSTUDIO
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_AIPTEK
,
USB_DEVICE_ID_AIPTEK_6000
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_GRIFFIN
,
USB_DEVICE_ID_POWERMATE
,
HID_QUIRK_IGNORE
},
{
USB_VENDOR_ID_GRIFFIN
,
USB_DEVICE_ID_SOUNDKNOB
,
HID_QUIRK_IGNORE
},
...
...
drivers/usb/input/kbtab.c
0 → 100644
View file @
0f13a700
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb.h>
/*
* Version Information
* v0.0.1 - Original, extremely basic version, 2.4.xx only
* v0.0.2 - Updated, works with 2.5.62 and 2.4.20;
* - added pressure-threshold modules param code from
* Alex Perry <alex.perry@ieee.org>
*/
#define DRIVER_VERSION "v0.0.2"
#define DRIVER_AUTHOR "Josh Myer <josh@joshisanerd.com>"
#define DRIVER_DESC "USB KB Gear JamStudio Tablet driver"
#define DRIVER_LICENSE "GPL"
MODULE_AUTHOR
(
DRIVER_AUTHOR
);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
DRIVER_LICENSE
);
#define USB_VENDOR_ID_KBGEAR 0x084e
static
int
kb_pressure_click
=
0x10
;
MODULE_PARM
(
kb_pressure_click
,
"i"
);
MODULE_PARM_DESC
(
kb_pressure_click
,
"pressure threshold for clicks"
);
struct
kbtab
{
signed
char
*
data
;
dma_addr_t
data_dma
;
struct
input_dev
dev
;
struct
usb_device
*
usbdev
;
struct
urb
*
irq
;
int
open
;
int
x
,
y
;
int
button
;
int
pressure
;
__u32
serial
[
2
];
char
phys
[
32
];
};
static
void
kbtab_irq
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
)
{
struct
kbtab
*
kbtab
=
urb
->
context
;
unsigned
char
*
data
=
kbtab
->
data
;
struct
input_dev
*
dev
=
&
kbtab
->
dev
;
int
retval
;
switch
(
urb
->
status
)
{
case
0
:
/* success */
break
;
case
-
ECONNRESET
:
case
-
ENOENT
:
case
-
ESHUTDOWN
:
/* this urb is terminated, clean up */
dbg
(
"%s - urb shutting down with status: %d"
,
__FUNCTION__
,
urb
->
status
);
return
;
default:
dbg
(
"%s - nonzero urb status received: %d"
,
__FUNCTION__
,
urb
->
status
);
goto
exit
;
}
kbtab
->
x
=
(
data
[
2
]
<<
8
)
+
data
[
1
];
kbtab
->
y
=
(
data
[
4
]
<<
8
)
+
data
[
3
];
kbtab
->
pressure
=
(
data
[
5
]);
input_report_key
(
dev
,
BTN_TOOL_PEN
,
1
);
input_report_abs
(
dev
,
ABS_X
,
kbtab
->
x
);
input_report_abs
(
dev
,
ABS_Y
,
kbtab
->
y
);
/*input_report_abs(dev, ABS_PRESSURE, kbtab->pressure);*/
/*input_report_key(dev, BTN_TOUCH , data[0] & 0x01);*/
input_report_key
(
dev
,
BTN_RIGHT
,
data
[
0
]
&
0x02
);
input_report_key
(
dev
,
BTN_LEFT
,
(
kbtab
->
pressure
>
kb_pressure_click
)
?
1
:
0
);
input_sync
(
dev
);
exit:
retval
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
retval
)
err
(
"%s - usb_submit_urb failed with result %d"
,
__FUNCTION__
,
retval
);
}
struct
usb_device_id
kbtab_ids
[]
=
{
{
USB_DEVICE
(
USB_VENDOR_ID_KBGEAR
,
0x1001
),
driver_info
:
0
},
{
}
};
MODULE_DEVICE_TABLE
(
usb
,
kbtab_ids
);
static
int
kbtab_open
(
struct
input_dev
*
dev
)
{
struct
kbtab
*
kbtab
=
dev
->
private
;
if
(
kbtab
->
open
++
)
return
0
;
kbtab
->
irq
->
dev
=
kbtab
->
usbdev
;
if
(
usb_submit_urb
(
kbtab
->
irq
,
GFP_KERNEL
))
return
-
EIO
;
return
0
;
}
static
void
kbtab_close
(
struct
input_dev
*
dev
)
{
struct
kbtab
*
kbtab
=
dev
->
private
;
if
(
!--
kbtab
->
open
)
usb_unlink_urb
(
kbtab
->
irq
);
}
static
int
kbtab_probe
(
struct
usb_interface
*
intf
,
const
struct
usb_device_id
*
id
)
{
struct
usb_device
*
dev
=
interface_to_usbdev
(
intf
);
struct
usb_endpoint_descriptor
*
endpoint
;
struct
kbtab
*
kbtab
;
char
path
[
64
];
if
(
!
(
kbtab
=
kmalloc
(
sizeof
(
struct
kbtab
),
GFP_KERNEL
)))
return
-
ENOMEM
;
memset
(
kbtab
,
0
,
sizeof
(
struct
kbtab
));
kbtab
->
data
=
usb_buffer_alloc
(
dev
,
8
,
SLAB_ATOMIC
,
&
kbtab
->
data_dma
);
if
(
!
kbtab
->
data
)
{
kfree
(
kbtab
);
return
-
ENOMEM
;
}
kbtab
->
irq
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
kbtab
->
irq
)
{
usb_buffer_free
(
dev
,
10
,
kbtab
->
data
,
kbtab
->
data_dma
);
kfree
(
kbtab
);
return
-
ENOMEM
;
}
kbtab
->
dev
.
evbit
[
0
]
|=
BIT
(
EV_KEY
)
|
BIT
(
EV_ABS
)
|
BIT
(
EV_MSC
);
kbtab
->
dev
.
absbit
[
0
]
|=
BIT
(
ABS_X
)
|
BIT
(
ABS_Y
)
|
BIT
(
ABS_PRESSURE
);
kbtab
->
dev
.
keybit
[
LONG
(
BTN_LEFT
)]
|=
BIT
(
BTN_LEFT
)
|
BIT
(
BTN_RIGHT
)
|
BIT
(
BTN_MIDDLE
);
kbtab
->
dev
.
keybit
[
LONG
(
BTN_DIGI
)]
|=
BIT
(
BTN_TOOL_PEN
)
|
BIT
(
BTN_TOUCH
);
kbtab
->
dev
.
mscbit
[
0
]
|=
BIT
(
MSC_SERIAL
);
kbtab
->
dev
.
absmax
[
ABS_X
]
=
0x2000
;
kbtab
->
dev
.
absmax
[
ABS_Y
]
=
0x1750
;
kbtab
->
dev
.
absmax
[
ABS_PRESSURE
]
=
0xff
;
kbtab
->
dev
.
absfuzz
[
ABS_X
]
=
4
;
kbtab
->
dev
.
absfuzz
[
ABS_Y
]
=
4
;
kbtab
->
dev
.
private
=
kbtab
;
kbtab
->
dev
.
open
=
kbtab_open
;
kbtab
->
dev
.
close
=
kbtab_close
;
usb_make_path
(
dev
,
path
,
64
);
sprintf
(
kbtab
->
phys
,
"%s/input0"
,
path
);
kbtab
->
dev
.
name
=
"KB Gear Tablet"
;
kbtab
->
dev
.
phys
=
kbtab
->
phys
;
kbtab
->
dev
.
id
.
bustype
=
BUS_USB
;
kbtab
->
dev
.
id
.
vendor
=
dev
->
descriptor
.
idVendor
;
kbtab
->
dev
.
id
.
product
=
dev
->
descriptor
.
idProduct
;
kbtab
->
dev
.
id
.
version
=
dev
->
descriptor
.
bcdDevice
;
kbtab
->
usbdev
=
dev
;
endpoint
=
&
intf
->
altsetting
[
0
].
endpoint
[
0
].
desc
;
usb_fill_int_urb
(
kbtab
->
irq
,
dev
,
usb_rcvintpipe
(
dev
,
endpoint
->
bEndpointAddress
),
kbtab
->
data
,
8
,
kbtab_irq
,
kbtab
,
endpoint
->
bInterval
);
kbtab
->
irq
->
transfer_dma
=
kbtab
->
data_dma
;
kbtab
->
irq
->
transfer_flags
|=
URB_NO_DMA_MAP
;
input_register_device
(
&
kbtab
->
dev
);
printk
(
KERN_INFO
"input: KB Gear Tablet on %s
\n
"
,
path
);
usb_set_intfdata
(
intf
,
kbtab
);
return
0
;
}
static
void
kbtab_disconnect
(
struct
usb_interface
*
intf
)
{
struct
kbtab
*
kbtab
=
usb_get_intfdata
(
intf
);
usb_set_intfdata
(
intf
,
NULL
);
if
(
kbtab
)
{
usb_unlink_urb
(
kbtab
->
irq
);
input_unregister_device
(
&
kbtab
->
dev
);
usb_free_urb
(
kbtab
->
irq
);
usb_buffer_free
(
interface_to_usbdev
(
intf
),
10
,
kbtab
->
data
,
kbtab
->
data_dma
);
kfree
(
kbtab
);
}
}
static
struct
usb_driver
kbtab_driver
=
{
.
name
=
"kbtab"
,
.
probe
=
kbtab_probe
,
.
disconnect
=
kbtab_disconnect
,
.
id_table
=
kbtab_ids
,
};
static
int
__init
kbtab_init
(
void
)
{
usb_register
(
&
kbtab_driver
);
info
(
DRIVER_VERSION
":"
DRIVER_DESC
);
return
0
;
}
static
void
__exit
kbtab_exit
(
void
)
{
usb_deregister
(
&
kbtab_driver
);
}
module_init
(
kbtab_init
);
module_exit
(
kbtab_exit
);
drivers/usb/misc/speedtouch.c
View file @
0f13a700
...
...
@@ -56,7 +56,6 @@
#include <linux/slab.h>
#include <linux/list.h>
#include <asm/uaccess.h>
#include <linux/usb.h>
#include <linux/smp_lock.h>
#include <linux/interrupt.h>
#include <linux/atm.h>
...
...
@@ -69,11 +68,7 @@
#define DEBUG_PACKET 1
*/
#ifdef DEBUG
#define PDEBUG(arg...) printk(KERN_DEBUG __FILE__ ": " arg)
#else
#define PDEBUG(arg...)
#endif
#include <linux/usb.h>
#ifdef DEBUG_PACKET
...
...
@@ -161,6 +156,7 @@ struct udsl_instance_data {
/* usb device part */
struct
usb_device
*
usb_dev
;
char
description
[
64
];
int
firmware_loaded
;
/* atm device part */
...
...
@@ -324,11 +320,11 @@ static void udsl_complete_receive (struct urb *urb, struct pt_regs *regs)
unsigned
long
flags
;
if
(
!
urb
||
!
(
rcv
=
urb
->
context
)
||
!
(
instance
=
rcv
->
instance
))
{
PDEBUG
(
"udsl_complete_receive: bad urb!
\n
"
);
dbg
(
"udsl_complete_receive: bad urb!
"
);
return
;
}
PDEBUG
(
"udsl_complete_receive entered (urb 0x%p, status %d)
\n
"
,
urb
,
urb
->
status
);
dbg
(
"udsl_complete_receive entered (urb 0x%p, status %d)
"
,
urb
,
urb
->
status
);
tasklet_schedule
(
&
instance
->
receive_tasklet
);
/* may not be in_interrupt() */
...
...
@@ -349,7 +345,7 @@ static void udsl_process_receive (unsigned long data)
struct
sk_buff
*
new
=
NULL
,
*
tmp
=
NULL
;
int
err
;
PDEBUG
(
"udsl_process_receive entered
\n
"
);
dbg
(
"udsl_process_receive entered
"
);
spin_lock_irqsave
(
&
instance
->
completed_receivers_lock
,
flags
);
while
(
!
list_empty
(
&
instance
->
completed_receivers
))
{
...
...
@@ -358,11 +354,11 @@ static void udsl_process_receive (unsigned long data)
spin_unlock_irqrestore
(
&
instance
->
completed_receivers_lock
,
flags
);
urb
=
rcv
->
urb
;
PDEBUG
(
"udsl_process_receive: got packet %p with length %d and status %d
\n
"
,
urb
,
urb
->
actual_length
,
urb
->
status
);
dbg
(
"udsl_process_receive: got packet %p with length %d and status %d
"
,
urb
,
urb
->
actual_length
,
urb
->
status
);
switch
(
urb
->
status
)
{
case
0
:
PDEBUG
(
"udsl_process_receive: processing urb with rcv %p, urb %p, skb %p
\n
"
,
rcv
,
urb
,
rcv
->
skb
);
dbg
(
"udsl_process_receive: processing urb with rcv %p, urb %p, skb %p
"
,
rcv
,
urb
,
rcv
->
skb
);
/* update the skb structure */
skb
=
rcv
->
skb
;
...
...
@@ -370,13 +366,13 @@ static void udsl_process_receive (unsigned long data)
skb_put
(
skb
,
urb
->
actual_length
);
data_start
=
skb
->
data
;
PDEBUG
(
"skb->len = %d
\n
"
,
skb
->
len
);
dbg
(
"skb->len = %d
"
,
skb
->
len
);
PACKETDEBUG
(
skb
->
data
,
skb
->
len
);
while
((
new
=
atmsar_decode_rawcell
(
instance
->
atmsar_vcc_list
,
skb
,
&
atmsar_vcc
))
!=
NULL
)
{
PDEBUG
(
"(after cell processing)skb->len = %d
\n
"
,
new
->
len
);
dbg
(
"(after cell processing)skb->len = %d
"
,
new
->
len
);
switch
(
atmsar_vcc
->
type
)
{
case
ATMSAR_TYPE_AAL5
:
...
...
@@ -385,19 +381,19 @@ static void udsl_process_receive (unsigned long data)
/* we can't send NULL skbs upstream, the ATM layer would try to close the vcc... */
if
(
new
)
{
PDEBUG
(
"(after aal5 decap) skb->len = %d
\n
"
,
new
->
len
);
dbg
(
"(after aal5 decap) skb->len = %d
"
,
new
->
len
);
if
(
new
->
len
&&
atm_charge
(
atmsar_vcc
->
vcc
,
new
->
truesize
))
{
PACKETDEBUG
(
new
->
data
,
new
->
len
);
atmsar_vcc
->
vcc
->
push
(
atmsar_vcc
->
vcc
,
new
);
}
else
{
PDEBUG
(
"dropping incoming packet : rx_inuse = %d, vcc->sk->rcvbuf = %d, skb->true_size = %d
\n
"
,
dbg
(
"dropping incoming packet : rx_inuse = %d, vcc->sk->rcvbuf = %d, skb->true_size = %d"
,
atomic_read
(
&
atmsar_vcc
->
vcc
->
rx_inuse
),
atmsar_vcc
->
vcc
->
sk
->
rcvbuf
,
new
->
truesize
);
dev_kfree_skb
(
new
);
}
}
else
{
PDEBUG
(
"atmsar_decode_aal5 returned NULL!
\n
"
);
dbg
(
"atmsar_decode_aal5 returned NULL!
"
);
dev_kfree_skb
(
tmp
);
}
break
;
...
...
@@ -422,10 +418,10 @@ static void udsl_process_receive (unsigned long data)
rcv
);
if
(
!
(
err
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
)))
break
;
PDEBUG
(
"udsl_process_receive: submission failed (%d)
\n
"
,
err
);
dbg
(
"udsl_process_receive: submission failed (%d)
"
,
err
);
/* fall through */
default:
/* error or urb unlinked */
PDEBUG
(
"udsl_process_receive: adding to spare_receivers
\n
"
);
dbg
(
"udsl_process_receive: adding to spare_receivers
"
);
spin_lock_irqsave
(
&
instance
->
spare_receivers_lock
,
flags
);
list_add
(
&
rcv
->
list
,
&
instance
->
spare_receivers
);
spin_unlock_irqrestore
(
&
instance
->
spare_receivers_lock
,
flags
);
...
...
@@ -435,7 +431,7 @@ static void udsl_process_receive (unsigned long data)
spin_lock_irqsave
(
&
instance
->
completed_receivers_lock
,
flags
);
}
/* while */
spin_unlock_irqrestore
(
&
instance
->
completed_receivers_lock
,
flags
);
PDEBUG
(
"udsl_process_receive successful
\n
"
);
dbg
(
"udsl_process_receive successful
"
);
}
static
void
udsl_fire_receivers
(
struct
udsl_instance_data
*
instance
)
...
...
@@ -454,7 +450,7 @@ static void udsl_fire_receivers (struct udsl_instance_data *instance)
list_for_each_safe
(
pos
,
n
,
&
receivers
)
{
struct
udsl_receiver
*
rcv
=
list_entry
(
pos
,
struct
udsl_receiver
,
list
);
PDEBUG
(
"udsl_fire_receivers: firing urb %p
\n
"
,
rcv
->
urb
);
dbg
(
"udsl_fire_receivers: firing urb %p
"
,
rcv
->
urb
);
usb_fill_bulk_urb
(
rcv
->
urb
,
instance
->
usb_dev
,
...
...
@@ -465,7 +461,7 @@ static void udsl_fire_receivers (struct udsl_instance_data *instance)
rcv
);
if
(
usb_submit_urb
(
rcv
->
urb
,
GFP_KERNEL
)
<
0
)
{
PDEBUG
(
"udsl_fire_receivers: submit failed!
\n
"
);
dbg
(
"udsl_fire_receivers: submit failed!
"
);
spin_lock_irqsave
(
&
instance
->
spare_receivers_lock
,
flags
);
list_move
(
pos
,
&
instance
->
spare_receivers
);
spin_unlock_irqrestore
(
&
instance
->
spare_receivers_lock
,
flags
);
...
...
@@ -487,11 +483,11 @@ static void udsl_complete_send (struct urb *urb, struct pt_regs *regs)
unsigned
long
flags
;
if
(
!
urb
||
!
(
snd
=
urb
->
context
)
||
!
(
instance
=
snd
->
instance
))
{
PDEBUG
(
"udsl_complete_send: bad urb!
\n
"
);
dbg
(
"udsl_complete_send: bad urb!
"
);
return
;
}
PDEBUG
(
"udsl_complete_send entered (urb 0x%p, status %d)
\n
"
,
urb
,
urb
->
status
);
dbg
(
"udsl_complete_send entered (urb 0x%p, status %d)
"
,
urb
,
urb
->
status
);
tasklet_schedule
(
&
instance
->
send_tasklet
);
/* may not be in_interrupt() */
...
...
@@ -513,7 +509,7 @@ static void udsl_process_send (unsigned long data)
struct
udsl_sender
*
snd
;
unsigned
char
*
target
;
PDEBUG
(
"udsl_process_send entered
\n
"
);
dbg
(
"udsl_process_send entered
"
);
made_progress:
spin_lock_irqsave
(
&
instance
->
send_lock
,
flags
);
...
...
@@ -521,10 +517,10 @@ static void udsl_process_send (unsigned long data)
if
(
!
list_empty
(
&
instance
->
filled_buffers
))
{
buf
=
list_entry
(
instance
->
filled_buffers
.
next
,
struct
udsl_send_buffer
,
list
);
list_del
(
&
buf
->
list
);
PDEBUG
(
"sending filled buffer (0x%p)
\n
"
,
buf
);
dbg
(
"sending filled buffer (0x%p)
"
,
buf
);
}
else
if
((
buf
=
instance
->
current_buffer
))
{
instance
->
current_buffer
=
NULL
;
PDEBUG
(
"sending current buffer (0x%p)
\n
"
,
buf
);
dbg
(
"sending current buffer (0x%p)
"
,
buf
);
}
else
/* all buffers empty */
break
;
...
...
@@ -541,10 +537,10 @@ static void udsl_process_send (unsigned long data)
udsl_complete_send
,
snd
);
PDEBUG
(
"submitting urb 0x%p, contains %d cells
\n
"
,
snd
->
urb
,
UDSL_SND_BUFFER_SIZE
-
buf
->
free_cells
);
dbg
(
"submitting urb 0x%p, contains %d cells
"
,
snd
->
urb
,
UDSL_SND_BUFFER_SIZE
-
buf
->
free_cells
);
if
((
err
=
usb_submit_urb
(
snd
->
urb
,
GFP_ATOMIC
))
<
0
)
{
PDEBUG
(
"submission failed (%d)!
\n
"
,
err
);
dbg
(
"submission failed (%d)!
"
,
err
);
spin_lock_irqsave
(
&
instance
->
send_lock
,
flags
);
list_add
(
&
snd
->
list
,
&
instance
->
spare_senders
);
spin_unlock_irqrestore
(
&
instance
->
send_lock
,
flags
);
...
...
@@ -557,7 +553,7 @@ static void udsl_process_send (unsigned long data)
spin_unlock_irqrestore
(
&
instance
->
send_lock
,
flags
);
if
(
!
instance
->
current_skb
&&
!
(
instance
->
current_skb
=
skb_dequeue
(
&
instance
->
sndqueue
)))
{
PDEBUG
(
"done - no more skbs
\n
"
);
dbg
(
"done - no more skbs
"
);
return
;
}
...
...
@@ -568,7 +564,7 @@ static void udsl_process_send (unsigned long data)
if
(
list_empty
(
&
instance
->
spare_buffers
))
{
instance
->
current_buffer
=
NULL
;
spin_unlock_irqrestore
(
&
instance
->
send_lock
,
flags
);
PDEBUG
(
"done - no more buffers
\n
"
);
dbg
(
"done - no more buffers
"
);
return
;
}
buf
=
list_entry
(
instance
->
spare_buffers
.
next
,
struct
udsl_send_buffer
,
list
);
...
...
@@ -584,7 +580,7 @@ static void udsl_process_send (unsigned long data)
cells_to_write
=
min
(
buf
->
free_cells
,
UDSL_SKB
(
skb
)
->
num_cells
);
target
=
buf
->
free_start
;
PDEBUG
(
"writing %u cells from skb 0x%p to buffer 0x%p
\n
"
,
cells_to_write
,
skb
,
buf
);
dbg
(
"writing %u cells from skb 0x%p to buffer 0x%p
"
,
cells_to_write
,
skb
,
buf
);
for
(
i
=
0
;
i
<
cells_to_write
;
i
++
)
target
=
udsl_write_cell
(
skb
,
target
);
...
...
@@ -593,15 +589,15 @@ static void udsl_process_send (unsigned long data)
if
(
!
(
buf
->
free_cells
-=
cells_to_write
))
{
list_add_tail
(
&
buf
->
list
,
&
instance
->
filled_buffers
);
instance
->
current_buffer
=
NULL
;
PDEBUG
(
"queued filled buffer
\n
"
);
dbg
(
"queued filled buffer
"
);
}
PDEBUG
(
"buffer contains %d cells, %d left
\n
"
,
UDSL_SND_BUFFER_SIZE
-
buf
->
free_cells
,
buf
->
free_cells
);
dbg
(
"buffer contains %d cells, %d left
"
,
UDSL_SND_BUFFER_SIZE
-
buf
->
free_cells
,
buf
->
free_cells
);
if
(
!
UDSL_SKB
(
skb
)
->
num_cells
)
{
struct
atm_vcc
*
vcc
=
UDSL_SKB
(
skb
)
->
atm_data
.
vcc
;
PDEBUG
(
"discarding empty skb
\n
"
);
dbg
(
"discarding empty skb
"
);
if
(
vcc
->
pop
)
vcc
->
pop
(
vcc
,
skb
);
else
...
...
@@ -620,11 +616,11 @@ static void udsl_cancel_send (struct udsl_instance_data *instance, struct atm_vc
unsigned
long
flags
;
struct
sk_buff
*
skb
,
*
n
;
PDEBUG
(
"udsl_cancel_send entered
\n
"
);
dbg
(
"udsl_cancel_send entered
"
);
spin_lock_irqsave
(
&
instance
->
sndqueue
.
lock
,
flags
);
for
(
skb
=
instance
->
sndqueue
.
next
,
n
=
skb
->
next
;
skb
!=
(
struct
sk_buff
*
)
&
instance
->
sndqueue
;
skb
=
n
,
n
=
skb
->
next
)
if
(
UDSL_SKB
(
skb
)
->
atm_data
.
vcc
==
vcc
)
{
PDEBUG
(
"popping skb 0x%p
\n
"
,
skb
);
dbg
(
"popping skb 0x%p
"
,
skb
);
__skb_unlink
(
skb
,
&
instance
->
sndqueue
);
if
(
vcc
->
pop
)
vcc
->
pop
(
vcc
,
skb
);
...
...
@@ -635,7 +631,7 @@ static void udsl_cancel_send (struct udsl_instance_data *instance, struct atm_vc
tasklet_disable
(
&
instance
->
send_tasklet
);
if
((
skb
=
instance
->
current_skb
)
&&
(
UDSL_SKB
(
skb
)
->
atm_data
.
vcc
==
vcc
))
{
PDEBUG
(
"popping current skb (0x%p)
\n
"
,
skb
);
dbg
(
"popping current skb (0x%p)
"
,
skb
);
instance
->
current_skb
=
NULL
;
if
(
vcc
->
pop
)
vcc
->
pop
(
vcc
,
skb
);
...
...
@@ -643,17 +639,17 @@ static void udsl_cancel_send (struct udsl_instance_data *instance, struct atm_vc
kfree_skb
(
skb
);
}
tasklet_enable
(
&
instance
->
send_tasklet
);
PDEBUG
(
"udsl_cancel_send done
\n
"
);
dbg
(
"udsl_cancel_send done
"
);
}
static
int
udsl_atm_send
(
struct
atm_vcc
*
vcc
,
struct
sk_buff
*
skb
)
{
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
PDEBUG
(
"udsl_atm_send called (skb 0x%p, len %u)
\n
"
,
skb
,
skb
->
len
);
dbg
(
"udsl_atm_send called (skb 0x%p, len %u)
"
,
skb
,
skb
->
len
);
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
-
EINVAL
;
}
...
...
@@ -661,12 +657,12 @@ static int udsl_atm_send (struct atm_vcc *vcc, struct sk_buff *skb)
return
-
EAGAIN
;
if
(
vcc
->
qos
.
aal
!=
ATM_AAL5
)
{
PDEBUG
(
"unsupported ATM type %d!
\n
"
,
vcc
->
qos
.
aal
);
dbg
(
"unsupported ATM type %d!
"
,
vcc
->
qos
.
aal
);
return
-
EINVAL
;
}
if
(
skb
->
len
>
ATM_MAX_AAL5_PDU
)
{
PDEBUG
(
"packet too long (%d vs %d)!
\n
"
,
skb
->
len
,
ATM_MAX_AAL5_PDU
);
dbg
(
"packet too long (%d vs %d)!
"
,
skb
->
len
,
ATM_MAX_AAL5_PDU
);
return
-
EINVAL
;
}
...
...
@@ -695,15 +691,15 @@ static void udsl_atm_dev_close (struct atm_dev *dev)
struct
udsl_instance_data
*
instance
=
dev
->
dev_data
;
if
(
!
instance
)
{
PDEBUG
(
"udsl_atm_dev_close: NULL instance!
\n
"
);
dbg
(
"udsl_atm_dev_close: NULL instance!
"
);
return
;
}
PDEBUG
(
"udsl_atm_dev_close: queue has %u elements
\n
"
,
instance
->
sndqueue
.
qlen
);
dbg
(
"udsl_atm_dev_close: queue has %u elements
"
,
instance
->
sndqueue
.
qlen
);
PDEBUG
(
"udsl_atm_dev_close: killing tasklet
\n
"
);
dbg
(
"udsl_atm_dev_close: killing tasklet
"
);
tasklet_kill
(
&
instance
->
send_tasklet
);
PDEBUG
(
"udsl_atm_dev_close: freeing instance
\n
"
);
dbg
(
"udsl_atm_dev_close: freeing instance
"
);
kfree
(
instance
);
}
...
...
@@ -720,13 +716,15 @@ static int udsl_atm_proc_read (struct atm_dev *atm_dev, loff_t *pos, char *page)
int
left
=
*
pos
;
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
-
ENODEV
;
}
if
(
!
left
--
)
return
sprintf
(
page
,
"SpeedTouch USB %s-%s (%02x:%02x:%02x:%02x:%02x:%02x)
\n
"
,
instance
->
usb_dev
->
bus
->
bus_name
,
instance
->
usb_dev
->
devpath
,
return
sprintf
(
page
,
"%s
\n
"
,
instance
->
description
);
if
(
!
left
--
)
return
sprintf
(
page
,
"MAC: %02x:%02x:%02x:%02x:%02x:%02x
\n
"
,
atm_dev
->
esi
[
0
],
atm_dev
->
esi
[
1
],
atm_dev
->
esi
[
2
],
atm_dev
->
esi
[
3
],
atm_dev
->
esi
[
4
],
atm_dev
->
esi
[
5
]);
...
...
@@ -738,6 +736,30 @@ static int udsl_atm_proc_read (struct atm_dev *atm_dev, loff_t *pos, char *page)
atomic_read
(
&
atm_dev
->
stats
.
aal5
.
rx_err
),
atomic_read
(
&
atm_dev
->
stats
.
aal5
.
rx_drop
));
if
(
!
left
--
)
{
switch
(
atm_dev
->
signal
)
{
case
ATM_PHY_SIG_FOUND
:
sprintf
(
page
,
"Line up"
);
break
;
case
ATM_PHY_SIG_LOST
:
sprintf
(
page
,
"Line down"
);
break
;
default:
sprintf
(
page
,
"Line state unknown"
);
break
;
}
if
(
instance
->
usb_dev
)
{
if
(
!
instance
->
firmware_loaded
)
strcat
(
page
,
", no firmware
\n
"
);
else
strcat
(
page
,
", firmware loaded
\n
"
);
}
else
strcat
(
page
,
", disconnected
\n
"
);
return
strlen
(
page
);
}
return
0
;
}
...
...
@@ -752,10 +774,10 @@ static int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
{
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
PDEBUG
(
"udsl_atm_open called
\n
"
);
dbg
(
"udsl_atm_open called
"
);
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
-
ENODEV
;
}
...
...
@@ -784,7 +806,7 @@ static int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
if
(
instance
->
firmware_loaded
)
udsl_fire_receivers
(
instance
);
PDEBUG
(
"udsl_atm_open successfull
\n
"
);
dbg
(
"udsl_atm_open successful
"
);
return
0
;
}
...
...
@@ -792,10 +814,10 @@ static void udsl_atm_close (struct atm_vcc *vcc)
{
struct
udsl_instance_data
*
instance
=
vcc
->
dev
->
dev_data
;
PDEBUG
(
"udsl_atm_close called
\n
"
);
dbg
(
"udsl_atm_close called
"
);
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
;
}
...
...
@@ -814,7 +836,7 @@ static void udsl_atm_close (struct atm_vcc *vcc)
MOD_DEC_USE_COUNT
;
PDEBUG
(
"udsl_atm_close successfull
\n
"
);
dbg
(
"udsl_atm_close successful
"
);
return
;
}
...
...
@@ -837,10 +859,10 @@ static int udsl_usb_ioctl (struct usb_interface *intf, unsigned int code, void *
{
struct
udsl_instance_data
*
instance
=
usb_get_intfdata
(
intf
);
PDEBUG
(
"udsl_usb_ioctl entered
\n
"
);
dbg
(
"udsl_usb_ioctl entered
"
);
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
-
ENODEV
;
}
...
...
@@ -870,9 +892,10 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
struct
udsl_instance_data
*
instance
;
unsigned
char
mac_str
[
13
];
unsigned
char
mac
[
6
];
int
i
;
int
i
,
length
;
char
*
buf
;
PDEBUG
(
"Trying device with Vendor=0x%x, Product=0x%x, ifnum %d
\n
"
,
dbg
(
"Trying device with Vendor=0x%x, Product=0x%x, ifnum %d
"
,
dev
->
descriptor
.
idVendor
,
dev
->
descriptor
.
idProduct
,
ifnum
);
if
((
dev
->
descriptor
.
bDeviceClass
!=
USB_CLASS_VENDOR_SPEC
)
||
...
...
@@ -880,11 +903,11 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
(
dev
->
descriptor
.
idProduct
!=
SPEEDTOUCH_PRODUCTID
)
||
(
ifnum
!=
1
))
return
-
ENODEV
;
PDEBUG
(
"Device Accepted
\n
"
);
dbg
(
"Device Accepted
"
);
/* instance init */
if
(
!
(
instance
=
kmalloc
(
sizeof
(
struct
udsl_instance_data
),
GFP_KERNEL
)))
{
PDEBUG
(
"No memory for Instance data!
\n
"
);
dbg
(
"No memory for Instance data!
"
);
return
-
ENOMEM
;
}
...
...
@@ -916,12 +939,12 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
struct
udsl_receiver
*
rcv
=
&
(
instance
->
all_receivers
[
i
]);
if
(
!
(
rcv
->
skb
=
dev_alloc_skb
(
UDSL_RCV_BUFFER_SIZE
*
ATM_CELL_SIZE
)))
{
PDEBUG
(
"No memory for skb %d!
\n
"
,
i
);
dbg
(
"No memory for skb %d!
"
,
i
);
goto
fail
;
}
if
(
!
(
rcv
->
urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
PDEBUG
(
"No memory for receive urb %d!
\n
"
,
i
);
dbg
(
"No memory for receive urb %d!
"
,
i
);
goto
fail
;
}
...
...
@@ -929,7 +952,7 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
list_add
(
&
rcv
->
list
,
&
instance
->
spare_receivers
);
PDEBUG
(
"skb->truesize = %d (asked for %d)
\n
"
,
rcv
->
skb
->
truesize
,
UDSL_RCV_BUFFER_SIZE
*
ATM_CELL_SIZE
);
dbg
(
"skb->truesize = %d (asked for %d)
"
,
rcv
->
skb
->
truesize
,
UDSL_RCV_BUFFER_SIZE
*
ATM_CELL_SIZE
);
}
/* send init */
...
...
@@ -937,7 +960,7 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
struct
udsl_sender
*
snd
=
&
(
instance
->
all_senders
[
i
]);
if
(
!
(
snd
->
urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
PDEBUG
(
"No memory for send urb %d!
\n
"
,
i
);
dbg
(
"No memory for send urb %d!
"
,
i
);
goto
fail
;
}
...
...
@@ -950,7 +973,7 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
struct
udsl_send_buffer
*
buf
=
&
(
instance
->
all_buffers
[
i
]);
if
(
!
(
buf
->
base
=
kmalloc
(
UDSL_SND_BUFFER_SIZE
*
ATM_CELL_SIZE
,
GFP_KERNEL
)))
{
PDEBUG
(
"No memory for send buffer %d!
\n
"
,
i
);
dbg
(
"No memory for send buffer %d!
"
,
i
);
goto
fail
;
}
...
...
@@ -959,13 +982,13 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
/* atm init */
if
(
!
(
instance
->
atm_dev
=
atm_dev_register
(
udsl_driver_name
,
&
udsl_atm_devops
,
-
1
,
0
)))
{
PDEBUG
(
"failed to register ATM device!
\n
"
);
dbg
(
"failed to register ATM device!
"
);
goto
fail
;
}
instance
->
atm_dev
->
ci_range
.
vpi_bits
=
ATM_CI_MAX
;
instance
->
atm_dev
->
ci_range
.
vci_bits
=
ATM_CI_MAX
;
instance
->
atm_dev
->
signal
=
ATM_PHY_SIG_
LOST
;
instance
->
atm_dev
->
signal
=
ATM_PHY_SIG_
UNKNOWN
;
/* tmp init atm device, set to 128kbit */
instance
->
atm_dev
->
link_rate
=
128
*
1000
/
424
;
...
...
@@ -975,12 +998,34 @@ static int udsl_usb_probe (struct usb_interface *intf, const struct usb_device_i
for
(
i
=
0
;
i
<
6
;
i
++
)
mac
[
i
]
=
(
hex2int
(
mac_str
[
i
*
2
])
*
16
)
+
(
hex2int
(
mac_str
[
i
*
2
+
1
]));
PDEBUG
(
"MAC is %02x:%02x:%02x:%02x:%02x:%02x
\n
"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
dbg
(
"MAC is %02x:%02x:%02x:%02x:%02x:%02x
"
,
mac
[
0
],
mac
[
1
],
mac
[
2
],
mac
[
3
],
mac
[
4
],
mac
[
5
]);
memcpy
(
instance
->
atm_dev
->
esi
,
mac
,
6
);
wmb
();
/* device description */
buf
=
instance
->
description
;
length
=
sizeof
(
instance
->
description
);
if
((
i
=
usb_string
(
dev
,
dev
->
descriptor
.
iProduct
,
buf
,
length
))
<
0
)
goto
finish
;
buf
+=
i
;
length
-=
i
;
i
=
snprintf
(
buf
,
length
,
" ("
);
buf
+=
i
;
length
-=
i
;
if
(
length
<=
0
||
(
i
=
usb_make_path
(
dev
,
buf
,
length
))
<
0
)
goto
finish
;
buf
+=
i
;
length
-=
i
;
snprintf
(
buf
,
length
,
")"
);
finish:
/* ready for ATM callbacks */
instance
->
atm_dev
->
dev_data
=
instance
;
usb_set_intfdata
(
intf
,
instance
);
...
...
@@ -1016,12 +1061,12 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
unsigned
int
count
=
0
;
int
result
,
i
;
PDEBUG
(
"disconnecting
\n
"
);
dbg
(
"disconnecting
"
);
usb_set_intfdata
(
intf
,
NULL
);
if
(
!
instance
)
{
PDEBUG
(
"NULL instance!
\n
"
);
dbg
(
"NULL instance!
"
);
return
;
}
...
...
@@ -1036,13 +1081,13 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
INIT_LIST_HEAD
(
&
instance
->
spare_receivers
);
up
(
&
instance
->
serialize
);
PDEBUG
(
"udsl_usb_disconnect: flushed %u spare receivers
\n
"
,
count
);
dbg
(
"udsl_usb_disconnect: flushed %u spare receivers
"
,
count
);
count
=
UDSL_NUMBER_RCV_URBS
-
count
;
for
(
i
=
0
;
i
<
UDSL_NUMBER_RCV_URBS
;
i
++
)
if
((
result
=
usb_unlink_urb
(
instance
->
all_receivers
[
i
].
urb
))
<
0
)
PDEBUG
(
"udsl_usb_disconnect: usb_unlink_urb on receive urb %d returned %d
\n
"
,
i
,
result
);
dbg
(
"udsl_usb_disconnect: usb_unlink_urb on receive urb %d returned %d
"
,
i
,
result
);
/* wait for completion handlers to finish */
do
{
...
...
@@ -1054,7 +1099,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
panic
(
__FILE__
": memory corruption detected at line %d!
\n
"
,
__LINE__
);
spin_unlock_irqrestore
(
&
instance
->
completed_receivers_lock
,
flags
);
PDEBUG
(
"udsl_usb_disconnect: found %u completed receivers
\n
"
,
completed
);
dbg
(
"udsl_usb_disconnect: found %u completed receivers
"
,
completed
);
if
(
completed
==
count
)
break
;
...
...
@@ -1062,14 +1107,14 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
yield
();
}
while
(
1
);
PDEBUG
(
"udsl_usb_disconnect: flushing
\n
"
);
dbg
(
"udsl_usb_disconnect: flushing
"
);
/* no need to take the spinlock */
INIT_LIST_HEAD
(
&
instance
->
completed_receivers
);
tasklet_enable
(
&
instance
->
receive_tasklet
);
tasklet_kill
(
&
instance
->
receive_tasklet
);
PDEBUG
(
"udsl_usb_disconnect: freeing receivers
\n
"
);
dbg
(
"udsl_usb_disconnect: freeing receivers
"
);
for
(
i
=
0
;
i
<
UDSL_NUMBER_RCV_URBS
;
i
++
)
{
struct
udsl_receiver
*
rcv
=
&
(
instance
->
all_receivers
[
i
]);
...
...
@@ -1082,7 +1127,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
for
(
i
=
0
;
i
<
UDSL_NUMBER_SND_URBS
;
i
++
)
if
((
result
=
usb_unlink_urb
(
instance
->
all_senders
[
i
].
urb
))
<
0
)
PDEBUG
(
"udsl_usb_disconnect: usb_unlink_urb on send urb %d returned %d
\n
"
,
i
,
result
);
dbg
(
"udsl_usb_disconnect: usb_unlink_urb on send urb %d returned %d
"
,
i
,
result
);
/* wait for completion handlers to finish */
do
{
...
...
@@ -1093,7 +1138,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
panic
(
__FILE__
": memory corruption detected at line %d!
\n
"
,
__LINE__
);
spin_unlock_irqrestore
(
&
instance
->
send_lock
,
flags
);
PDEBUG
(
"udsl_usb_disconnect: found %u spare senders
\n
"
,
count
);
dbg
(
"udsl_usb_disconnect: found %u spare senders
"
,
count
);
if
(
count
==
UDSL_NUMBER_SND_URBS
)
break
;
...
...
@@ -1101,7 +1146,7 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
yield
();
}
while
(
1
);
PDEBUG
(
"udsl_usb_disconnect: flushing
\n
"
);
dbg
(
"udsl_usb_disconnect: flushing
"
);
/* no need to take the spinlock */
INIT_LIST_HEAD
(
&
instance
->
spare_senders
);
INIT_LIST_HEAD
(
&
instance
->
spare_buffers
);
...
...
@@ -1109,16 +1154,18 @@ static void udsl_usb_disconnect (struct usb_interface *intf)
tasklet_enable
(
&
instance
->
send_tasklet
);
PDEBUG
(
"udsl_usb_disconnect: freeing senders
\n
"
);
dbg
(
"udsl_usb_disconnect: freeing senders
"
);
for
(
i
=
0
;
i
<
UDSL_NUMBER_SND_URBS
;
i
++
)
usb_free_urb
(
instance
->
all_senders
[
i
].
urb
);
PDEBUG
(
"udsl_usb_disconnect: freeing buffers
\n
"
);
dbg
(
"udsl_usb_disconnect: freeing buffers
"
);
for
(
i
=
0
;
i
<
UDSL_NUMBER_SND_BUFS
;
i
++
)
kfree
(
instance
->
all_buffers
[
i
].
base
);
instance
->
usb_dev
=
NULL
;
/* atm finalize */
shutdown_atm_dev
(
instance
->
atm_dev
);
shutdown_atm_dev
(
instance
->
atm_dev
);
/* frees instance */
}
...
...
@@ -1132,7 +1179,7 @@ static int __init udsl_usb_init (void)
{
struct
sk_buff
*
skb
;
/* dummy for sizeof */
PDEBUG
(
"udsl_usb_init: driver version "
DRIVER_VERSION
"
\n
"
);
dbg
(
"udsl_usb_init: driver version "
DRIVER_VERSION
);
if
(
sizeof
(
struct
udsl_control
)
>
sizeof
(
skb
->
cb
))
{
printk
(
KERN_ERR
__FILE__
": unusable with this kernel!
\n
"
);
...
...
@@ -1144,7 +1191,7 @@ static int __init udsl_usb_init (void)
static
void
__exit
udsl_usb_cleanup
(
void
)
{
PDEBUG
(
"udsl_usb_cleanup
\n
"
);
dbg
(
"udsl_usb_cleanup
"
);
usb_deregister
(
&
udsl_usb_driver
);
}
...
...
@@ -1175,7 +1222,7 @@ static int udsl_print_packet (const unsigned char *data, int len)
for
(
j
=
0
;
(
j
<
16
)
&&
(
i
<
len
);
j
++
,
i
++
)
{
sprintf
(
buffer
,
"%s %2.2x"
,
buffer
,
data
[
i
]);
}
PDEBUG
(
"%s
\n
"
,
buffer
);
dbg
(
"%s
"
,
buffer
);
}
return
i
;
}
...
...
drivers/usb/misc/usbtest.c
View file @
0f13a700
...
...
@@ -552,6 +552,7 @@ static int ch9_postconfig (struct usbtest_dev *dev)
* (b) protocol stalls (control-only) will autorecover.
* it's quite not like bulk/intr; no halt clearing.
* (c) short control reads are reported and handled.
* (d) queues are always processed in-order
*/
struct
ctrl_ctx
{
...
...
@@ -563,66 +564,68 @@ struct ctrl_ctx {
int
status
;
struct
urb
**
urb
;
struct
usbtest_param
*
param
;
int
last
;
};
#define NUM_SUBCASES 13
/* how many test subcases here? */
struct
subcase
{
struct
usb_ctrlrequest
setup
;
int
number
;
int
expected
;
};
static
void
ctrl_complete
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
)
{
struct
ctrl_ctx
*
ctx
=
urb
->
context
;
struct
usb_ctrlrequest
*
reqp
;
struct
subcase
*
subcase
;
int
status
=
urb
->
status
;
reqp
=
(
struct
usb_ctrlrequest
*
)
urb
->
setup_packet
;
subcase
=
container_of
(
reqp
,
struct
subcase
,
setup
);
spin_lock
(
&
ctx
->
lock
);
ctx
->
count
--
;
ctx
->
pending
--
;
/*
FIXME verify that the completions are in the right sequence.
*
we could store the test number with the setup packet, that
*
buffer has extra space
.
/*
queue must transfer and complete in fifo order, unless
*
usb_unlink_urb() is used to unlink something not at the
*
physical queue head (not tested)
.
*/
switch
(
status
)
{
case
0
:
/* success */
case
-
EREMOTEIO
:
/* short read */
if
(
reqp
->
bRequestType
==
(
USB_DIR_IN
|
USB_RECIP_DEVICE
)
&&
reqp
->
bRequest
==
USB_REQ_GET_DESCRIPTOR
&&
((
le16_to_cpu
(
reqp
->
wValue
)
>>
8
)
==
USB_DT_DEVICE
))
{
if
(
reqp
->
wLength
>
USB_DT_DEVICE_SIZE
&&
status
==
-
EREMOTEIO
)
status
=
0
;
else
if
(
reqp
->
wLength
==
USB_DT_DEVICE_SIZE
&&
status
!=
0
)
status
=
-
EIO
;
if
(
status
)
goto
error
;
if
(
subcase
->
number
>
0
)
{
if
((
subcase
->
number
-
ctx
->
last
)
!=
1
)
{
dbg
(
"subcase %d completed out of order, last %d"
,
subcase
->
number
,
ctx
->
last
);
status
=
-
EDOM
;
goto
error
;
}
break
;
case
-
ECONNRESET
:
/* async unlink */
break
;
case
-
EPIPE
:
/* (protocol) stall */
if
(
reqp
->
bRequestType
==
(
USB_DIR_IN
|
USB_RECIP_INTERFACE
)
&&
reqp
->
bRequest
==
USB_REQ_GET_INTERFACE
)
}
ctx
->
last
=
subcase
->
number
;
/* succeed or fault in only one way? */
if
(
status
==
subcase
->
expected
)
status
=
0
;
/* async unlink for cleanup? */
else
if
(
status
!=
-
ECONNRESET
)
{
/* some faults are allowed, not required */
if
(
subcase
->
expected
>
0
&&
(
((
urb
->
status
==
-
subcase
->
expected
/* happened */
||
urb
->
status
==
0
))))
/* didn't */
status
=
0
;
else
if
(
reqp
->
bRequestType
==
(
USB_DIR_IN
|
USB_RECIP_DEVICE
)
&&
reqp
->
bRequest
==
USB_REQ_GET_DESCRIPTOR
)
{
switch
(
le16_to_cpu
(
reqp
->
wValue
)
>>
8
)
{
case
USB_DT_DEVICE_QUALIFIER
:
case
USB_DT_OTHER_SPEED_CONFIG
:
case
USB_DT_INTERFACE
:
case
USB_DT_ENDPOINT
:
status
=
0
;
}
}
else
if
(
reqp
->
bRequestType
==
USB_RECIP_ENDPOINT
&&
reqp
->
bRequest
==
USB_REQ_CLEAR_FEATURE
)
/* sometimes more than one fault is allowed */
else
if
(
subcase
->
number
==
12
&&
status
==
-
EPIPE
)
status
=
0
;
/* some stalls we plan on; others would be errors */
if
(
status
==
0
)
break
;
/* else FALLTHROUGH */
else
dbg
(
"subtest %d error, status %d"
,
subcase
->
number
,
status
);
}
/* unexpected status codes mean errors; ideally, in hardware */
if
(
status
)
{
error:
default:
/* this fault's an error */
if
(
ctx
->
status
==
0
)
{
int
i
;
...
...
@@ -631,10 +634,8 @@ static void ctrl_complete (struct urb *urb, struct pt_regs *regs)
reqp
->
bRequestType
,
reqp
->
bRequest
,
status
,
ctx
->
count
);
/* FIXME use this "unlink everything" exit route
* in all cases, not just for fault cleanup.
* it'll be another test mode, but one that makes
* testing be more consistent.
/* FIXME this "unlink everything" exit route should
* be a separate test case.
*/
/* unlink whatever's still pending */
...
...
@@ -688,6 +689,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
context
.
pending
=
0
;
context
.
status
=
-
ENOMEM
;
context
.
param
=
param
;
context
.
last
=
-
1
;
/* allocate and init the urbs we'll queue.
* as with bulk/intr sglists, sglen is the queue depth; it also
...
...
@@ -701,7 +703,9 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
int
pipe
=
usb_rcvctrlpipe
(
udev
,
0
);
unsigned
len
;
struct
urb
*
u
;
struct
usb_ctrlrequest
req
,
*
reqp
;
struct
usb_ctrlrequest
req
;
struct
subcase
*
reqp
;
int
expected
=
0
;
/* requests here are mostly expected to succeed on any
* device, but some are chosen to trigger protocol stalls
...
...
@@ -711,7 +715,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
req
.
bRequest
=
USB_REQ_GET_DESCRIPTOR
;
req
.
bRequestType
=
USB_DIR_IN
|
USB_RECIP_DEVICE
;
switch
(
i
%
12
/* number of subtest cases here */
)
{
switch
(
i
%
NUM_SUBCASES
)
{
case
0
:
// get device descriptor
req
.
wValue
=
cpu_to_le16
(
USB_DT_DEVICE
<<
8
);
len
=
sizeof
(
struct
usb_device_descriptor
);
...
...
@@ -725,6 +729,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
req
.
bRequestType
=
USB_DIR_IN
|
USB_RECIP_INTERFACE
;
// index = 0 means first interface
len
=
1
;
expected
=
EPIPE
;
break
;
case
3
:
// get interface status
req
.
bRequest
=
USB_REQ_GET_STATUS
;
...
...
@@ -740,6 +745,8 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
case
5
:
// get device qualifier (MAY STALL)
req
.
wValue
=
cpu_to_le16
(
USB_DT_DEVICE_QUALIFIER
<<
8
);
len
=
sizeof
(
struct
usb_qualifier_descriptor
);
if
(
udev
->
speed
!=
USB_SPEED_HIGH
)
expected
=
EPIPE
;
break
;
case
6
:
// get first config descriptor, plus interface
req
.
wValue
=
cpu_to_le16
((
USB_DT_CONFIG
<<
8
)
|
0
);
...
...
@@ -750,6 +757,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
req
.
wValue
=
cpu_to_le16
(
USB_DT_INTERFACE
<<
8
);
// interface == 0
len
=
sizeof
(
struct
usb_interface_descriptor
);
expected
=
-
EPIPE
;
break
;
// NOTE: two consecutive stalls in the queue here.
// that tests fault recovery a bit more aggressively.
...
...
@@ -760,6 +768,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
// wIndex 0 == ep0 (shouldn't halt!)
len
=
0
;
pipe
=
usb_sndctrlpipe
(
udev
,
0
);
expected
=
EPIPE
;
break
;
case
9
:
// get endpoint status
req
.
bRequest
=
USB_REQ_GET_STATUS
;
...
...
@@ -770,18 +779,21 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
case
10
:
// trigger short read (EREMOTEIO)
req
.
wValue
=
cpu_to_le16
((
USB_DT_CONFIG
<<
8
)
|
0
);
len
=
1024
;
expected
=
-
EREMOTEIO
;
break
;
// NOTE: two consecutive _different_ faults in the queue.
case
11
:
// get endpoint descriptor (ALWAYS STALLS)
req
.
wValue
=
cpu_to_le16
(
USB_DT_ENDPOINT
<<
8
);
// endpoint == 0
len
=
sizeof
(
struct
usb_interface_descriptor
);
expected
=
-
EPIPE
;
break
;
// NOTE: sometimes even a third fault in the queue!
case
12
:
// get string 0 descriptor (MAY STALL)
req
.
wValue
=
cpu_to_le16
(
USB_DT_STRING
<<
8
);
// string == 0, for language IDs
len
=
sizeof
(
struct
usb_interface_descriptor
);
expected
=
EREMOTEIO
;
// or EPIPE, if no strings
break
;
default:
err
(
"bogus number of ctrl queue testcases!"
);
...
...
@@ -793,12 +805,14 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
if
(
!
u
)
goto
cleanup
;
reqp
=
usb_buffer_alloc
(
udev
,
sizeof
req
,
SLAB_KERNEL
,
reqp
=
usb_buffer_alloc
(
udev
,
sizeof
*
reqp
,
SLAB_KERNEL
,
&
u
->
setup_dma
);
if
(
!
reqp
)
goto
cleanup
;
*
reqp
=
req
;
u
->
setup_packet
=
(
char
*
)
reqp
;
reqp
->
setup
=
req
;
reqp
->
number
=
i
%
NUM_SUBCASES
;
reqp
->
expected
=
expected
;
u
->
setup_packet
=
(
char
*
)
&
reqp
->
setup
;
u
->
context
=
&
context
;
u
->
complete
=
ctrl_complete
;
...
...
@@ -839,6 +853,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param)
kfree
(
urb
);
return
context
.
status
;
}
#undef NUM_SUBCASES
/*-------------------------------------------------------------------------*/
...
...
@@ -886,7 +901,16 @@ static int unlink1 (struct usbtest_dev *dev, int pipe, int size, int async)
* hcd states and code paths, even with little other system load.
*/
wait_ms
(
jiffies
%
(
2
*
INTERRUPT_RATE
));
retry:
retval
=
usb_unlink_urb
(
urb
);
if
(
retval
==
-
EBUSY
)
{
/* we can't unlink urbs while they're completing.
* "normal" drivers would prevent resubmission, but
* since we're testing unlink paths, we can't.
*/
dbg
(
"unlink retry"
);
goto
retry
;
}
if
(
!
(
retval
==
0
||
retval
==
-
EINPROGRESS
))
{
dbg
(
"submit/unlink fail %d"
,
retval
);
return
retval
;
...
...
@@ -1309,7 +1333,13 @@ static struct usbtest_info ez2_info = {
.
alt
=
1
,
};
/* ezusb family device with dedicated usb test firmware*/
/* ezusb family device with dedicated usb test firmware,
* or a peripheral running Linux and 'zero.c' test firmware.
*
* FIXME usbtest should read the descriptors, since compatible
* test firmware might run on hardware (pxa250 for one) that
* can't configure an ep2in-bulk.
*/
static
struct
usbtest_info
fw_info
=
{
.
name
=
"usb test device"
,
.
ep_in
=
2
,
...
...
drivers/usb/serial/Kconfig
View file @
0f13a700
...
...
@@ -246,6 +246,12 @@ config USB_SERIAL_KEYSPAN
The module will be called keyspan. If you want to compile it as a
module, say M here and read <file:Documentation/modules.txt>.
config USB_SERIAL_KEYSPAN_MPR
bool "USB Keyspan MPR Firmware"
depends on USB_SERIAL_KEYSPAN
help
Say Y here to include firmware for the Keyspan MPR converter.
config USB_SERIAL_KEYSPAN_USA28
bool "USB Keyspan USA-28 Firmware"
depends on USB_SERIAL_KEYSPAN
...
...
@@ -312,6 +318,12 @@ config USB_SERIAL_KEYSPAN_USA49W
help
Say Y here to include firmware for the USA-49W converter.
config USB_SERIAL_KEYSPAN_USA49WLC
bool "USB Keyspan USA-49WLC Firmware"
depends on USB_SERIAL_KEYSPAN
help
Say Y here to include firmware for the USA-49WLC converter.
config USB_SERIAL_KLSI
tristate "USB KL5KUSB105 (Palmconnect) Driver (EXPERIMENTAL)"
depends on USB_SERIAL && EXPERIMENTAL
...
...
drivers/usb/serial/belkin_sa.c
View file @
0f13a700
...
...
@@ -144,6 +144,7 @@ static struct usb_serial_device_type belkin_device = {
struct
belkin_sa_private
{
spinlock_t
lock
;
unsigned
long
control_state
;
unsigned
char
last_lsr
;
unsigned
char
last_msr
;
...
...
@@ -175,6 +176,7 @@ static int belkin_sa_startup (struct usb_serial *serial)
if
(
!
priv
)
return
(
-
1
);
/* error */
/* set initial values for control structures */
spin_lock_init
(
&
priv
->
lock
);
priv
->
control_state
=
0
;
priv
->
last_lsr
=
0
;
priv
->
last_msr
=
0
;
...
...
@@ -262,6 +264,7 @@ static void belkin_sa_read_int_callback (struct urb *urb, struct pt_regs *regs)
struct
usb_serial
*
serial
;
unsigned
char
*
data
=
urb
->
transfer_buffer
;
int
retval
;
unsigned
long
flags
;
switch
(
urb
->
status
)
{
case
0
:
...
...
@@ -289,6 +292,7 @@ static void belkin_sa_read_int_callback (struct urb *urb, struct pt_regs *regs)
/* ignore data[0] and data[1] */
priv
=
usb_get_serial_port_data
(
port
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
last_msr
=
data
[
BELKIN_SA_MSR_INDEX
];
/* Record Control Line states */
...
...
@@ -336,6 +340,7 @@ static void belkin_sa_read_int_callback (struct urb *urb, struct pt_regs *regs)
}
}
#endif
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
exit:
retval
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
retval
)
...
...
@@ -352,6 +357,9 @@ static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios
unsigned
int
old_iflag
=
0
;
unsigned
int
old_cflag
=
0
;
__u16
urb_value
=
0
;
/* Will hold the new flags */
unsigned
long
flags
;
unsigned
long
control_state
;
int
bad_flow_control
;
if
((
!
port
->
tty
)
||
(
!
port
->
tty
->
termios
))
{
dbg
(
"%s - no tty or termios structure"
,
__FUNCTION__
);
...
...
@@ -361,6 +369,12 @@ static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios
iflag
=
port
->
tty
->
termios
->
c_iflag
;
cflag
=
port
->
tty
->
termios
->
c_cflag
;
/* get a local copy of the current port settings */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
control_state
=
priv
->
control_state
;
bad_flow_control
=
priv
->
bad_flow_control
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/* check that they really want us to change something */
if
(
old_termios
)
{
if
((
cflag
==
old_termios
->
c_cflag
)
&&
...
...
@@ -376,7 +390,7 @@ static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios
if
(
(
cflag
&
CBAUD
)
!=
(
old_cflag
&
CBAUD
)
)
{
/* reassert DTR and (maybe) RTS on transition from B0 */
if
(
(
old_cflag
&
CBAUD
)
==
B0
)
{
priv
->
control_state
|=
(
TIOCM_DTR
|
TIOCM_RTS
);
control_state
|=
(
TIOCM_DTR
|
TIOCM_RTS
);
if
(
BSA_USB_CMD
(
BELKIN_SA_SET_DTR_REQUEST
,
1
)
<
0
)
err
(
"Set DTR error"
);
/* don't set RTS if using hardware flow control */
...
...
@@ -410,7 +424,7 @@ static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios
err
(
"Disable flowcontrol error"
);
/* Drop RTS and DTR */
priv
->
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
if
(
BSA_USB_CMD
(
BELKIN_SA_SET_DTR_REQUEST
,
0
)
<
0
)
err
(
"DTR LOW error"
);
if
(
BSA_USB_CMD
(
BELKIN_SA_SET_RTS_REQUEST
,
0
)
<
0
)
...
...
@@ -465,12 +479,17 @@ static void belkin_sa_set_termios (struct usb_serial_port *port, struct termios
else
urb_value
&=
~
(
BELKIN_SA_FLOW_OCTS
|
BELKIN_SA_FLOW_IRTS
);
if
(
priv
->
bad_flow_control
)
if
(
bad_flow_control
)
urb_value
&=
~
(
BELKIN_SA_FLOW_IRTS
);
if
(
BSA_USB_CMD
(
BELKIN_SA_SET_FLOW_CTRL_REQUEST
,
urb_value
)
<
0
)
err
(
"Set flow control error"
);
}
/* save off the modified port settings */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
control_state
=
control_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
}
/* belkin_sa_set_termios */
...
...
@@ -488,12 +507,19 @@ static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, un
struct
usb_serial
*
serial
=
port
->
serial
;
__u16
urb_value
;
/* Will hold the new flags */
struct
belkin_sa_private
*
priv
=
usb_get_serial_port_data
(
port
);
int
ret
,
mask
;
int
ret
=
0
;
int
mask
;
unsigned
long
control_state
;
unsigned
long
flags
;
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
control_state
=
priv
->
control_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/* Based on code from acm.c and others */
switch
(
cmd
)
{
case
TIOCMGET
:
return
put_user
(
priv
->
control_state
,
(
unsigned
long
*
)
arg
);
return
put_user
(
control_state
,
(
unsigned
long
*
)
arg
);
break
;
case
TIOCMSET
:
/* Turns on and off the lines as specified by the mask */
...
...
@@ -506,13 +532,13 @@ static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, un
/* RTS needs set */
urb_value
=
((
cmd
==
TIOCMSET
)
&&
(
mask
&
TIOCM_RTS
))
||
(
cmd
==
TIOCMBIS
)
?
1
:
0
;
if
(
urb_value
)
priv
->
control_state
|=
TIOCM_RTS
;
control_state
|=
TIOCM_RTS
;
else
priv
->
control_state
&=
~
TIOCM_RTS
;
control_state
&=
~
TIOCM_RTS
;
if
((
ret
=
BSA_USB_CMD
(
BELKIN_SA_SET_RTS_REQUEST
,
urb_value
))
<
0
)
{
err
(
"Set RTS error %d"
,
ret
);
return
(
ret
)
;
goto
cmerror
;
}
}
...
...
@@ -520,14 +546,19 @@ static int belkin_sa_ioctl (struct usb_serial_port *port, struct file * file, un
/* DTR needs set */
urb_value
=
((
cmd
==
TIOCMSET
)
&&
(
mask
&
TIOCM_DTR
))
||
(
cmd
==
TIOCMBIS
)
?
1
:
0
;
if
(
urb_value
)
priv
->
control_state
|=
TIOCM_DTR
;
control_state
|=
TIOCM_DTR
;
else
priv
->
control_state
&=
~
TIOCM_DTR
;
control_state
&=
~
TIOCM_DTR
;
if
((
ret
=
BSA_USB_CMD
(
BELKIN_SA_SET_DTR_REQUEST
,
urb_value
))
<
0
)
{
err
(
"Set DTR error %d"
,
ret
);
return
(
ret
)
;
goto
cmerror
;
}
}
cmerror:
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
control_state
=
control_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
return
ret
;
break
;
case
TIOCMIWAIT
:
...
...
drivers/usb/serial/ipaq.c
View file @
0f13a700
...
...
@@ -107,6 +107,7 @@ static struct usb_device_id ipaq_id_table [] = {
{
USB_DEVICE
(
COMPAQ_VENDOR_ID
,
COMPAQ_IPAQ_ID
)
},
{
USB_DEVICE
(
COMPAQ_VENDOR_ID
,
COMPAQ_0032_ID
)
},
{
USB_DEVICE
(
DELL_VENDOR_ID
,
DELL_AXIM_ID
)
},
{
USB_DEVICE
(
FSC_VENDOR_ID
,
FSC_LOOX_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_548_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_JORNADA_568_ID
)
},
{
USB_DEVICE
(
HP_VENDOR_ID
,
HP_2016_ID
)
},
...
...
drivers/usb/serial/ipaq.h
View file @
0f13a700
...
...
@@ -33,6 +33,9 @@
#define DELL_VENDOR_ID 0x413c
#define DELL_AXIM_ID 0x4001
#define FSC_VENDOR_ID 0x0bf8
#define FSC_LOOX_ID 0x1001
#define HP_VENDOR_ID 0x03f0
#define HP_JORNADA_548_ID 0x1016
#define HP_JORNADA_568_ID 0x1116
...
...
drivers/usb/serial/keyspan.c
View file @
0f13a700
...
...
@@ -28,6 +28,24 @@
Change History
Wed Feb 19 22:00:00 PST 2003 (Jeffrey S. Laing <keyspan@jsl.com>)
Merged the current (1/31/03) Keyspan code with the current (2.4.21-pre4)
Linux source tree. The Linux tree lacked support for the 49WLC and
others. The Keyspan patches didn't work with the current kernel.
2003jan30 LPM add support for the 49WLC and MPR
Wed Apr 25 12:00:00 PST 2002 (Keyspan)
Started with Hugh Blemings' code dated Jan 17, 2002. All adapters
now supported (including QI and QW). Modified port open, port
close, and send setup() logic to fix various data and endpoint
synchronization bugs and device LED status bugs. Changed keyspan_
write_room() to accurately return transmit buffer availability.
Changed forwardingLength from 1 to 16 for all adapters.
Fri Oct 12 16:45:00 EST 2001
Preliminary USA-19QI and USA-28 support (both test OK for me, YMMV)
Wed Apr 25 12:00:00 PST 2002 (Keyspan)
Started with Hugh Blemings' code dated Jan 17, 2002. All adapters
now supported (including QI and QW). Modified port open, port
...
...
@@ -103,7 +121,7 @@
/*
* Version Information
*/
#define DRIVER_VERSION "v1.1.
3
"
#define DRIVER_VERSION "v1.1.
4
"
#define DRIVER_AUTHOR "Hugh Blemings <hugh@misc.nu"
#define DRIVER_DESC "Keyspan USB to Serial Converter Driver"
...
...
@@ -900,6 +918,9 @@ static int keyspan_open (struct usb_serial_port *port, struct file *filp)
/* usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), usb_pipeout(urb->pipe), 0); */
}
// if the device is a USA49x, determine whether it is an W or WLC model
// and set the baud clock accordingly
keyspan_send_setup
(
port
,
1
);
//mdelay(100);
keyspan_set_termios
(
port
,
NULL
);
...
...
@@ -1008,6 +1029,11 @@ static int keyspan_fake_startup (struct usb_serial *serial)
fw_name
=
"USA19QI"
;
break
;
case
keyspan_mpr_pre_product_id
:
record
=
&
keyspan_mpr_firmware
[
0
];
fw_name
=
"MPR"
;
break
;
case
keyspan_usa19qw_pre_product_id
:
record
=
&
keyspan_usa19qw_firmware
[
0
];
fw_name
=
"USA19QI"
;
...
...
@@ -1028,6 +1054,11 @@ static int keyspan_fake_startup (struct usb_serial *serial)
fw_name
=
"USA49W"
;
break
;
case
keyspan_usa49wlc_pre_product_id
:
record
=
&
keyspan_usa49wlc_firmware
[
0
];
fw_name
=
"USA49WLC"
;
break
;
default:
record
=
NULL
;
fw_name
=
"Unknown"
;
...
...
drivers/usb/serial/keyspan.h
View file @
0f13a700
...
...
@@ -136,6 +136,12 @@ struct ezusb_hex_record {
static
const
struct
ezusb_hex_record
*
keyspan_usa19qi_firmware
=
NULL
;
#endif
#ifdef CONFIG_USB_SERIAL_KEYSPAN_MPR
#include "keyspan_mpr_fw.h"
#else
static
const
struct
ezusb_hex_record
*
keyspan_mpr_firmware
=
NULL
;
#endif
#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA19QW
#include "keyspan_usa19qw_fw.h"
#else
...
...
@@ -160,6 +166,12 @@ struct ezusb_hex_record {
static
const
struct
ezusb_hex_record
*
keyspan_usa49w_firmware
=
NULL
;
#endif
#ifdef CONFIG_USB_SERIAL_KEYSPAN_USA49WLC
#include "keyspan_usa49wlc_fw.h"
#else
static
const
struct
ezusb_hex_record
*
keyspan_usa49wlc_firmware
=
NULL
;
#endif
/* Values used for baud rate calculation - device specific */
#define KEYSPAN_INVALID_BAUD_RATE (-1)
#define KEYSPAN_BAUD_RATE_OK (0)
...
...
@@ -182,6 +194,7 @@ struct ezusb_hex_record {
#define keyspan_usa18x_pre_product_id 0x0105
#define keyspan_usa19_pre_product_id 0x0103
#define keyspan_usa19qi_pre_product_id 0x010b
#define keyspan_mpr_pre_product_id 0x011b
#define keyspan_usa19qw_pre_product_id 0x0118
#define keyspan_usa19w_pre_product_id 0x0106
#define keyspan_usa28_pre_product_id 0x0101
...
...
@@ -189,6 +202,7 @@ struct ezusb_hex_record {
#define keyspan_usa28xa_pre_product_id 0x0114
#define keyspan_usa28xb_pre_product_id 0x0113
#define keyspan_usa49w_pre_product_id 0x0109
#define keyspan_usa49wlc_pre_product_id 0x011a
/* Product IDs post-renumeration. Note that the 28x and 28xb
have the same id's post-renumeration but behave identically
...
...
@@ -196,6 +210,7 @@ struct ezusb_hex_record {
#define keyspan_usa18x_product_id 0x0112
#define keyspan_usa19_product_id 0x0107
#define keyspan_usa19qi_product_id 0x010c
#define keyspan_mpr_product_id 0x011c
#define keyspan_usa19qw_product_id 0x0119
#define keyspan_usa19w_product_id 0x0108
#define keyspan_usa28_product_id 0x010f
...
...
@@ -203,6 +218,7 @@ struct ezusb_hex_record {
#define keyspan_usa28xa_product_id 0x0115
#define keyspan_usa28xb_product_id 0x0110
#define keyspan_usa49w_product_id 0x010a
#define keyspan_usa49wlc_product_id 0x012a
struct
keyspan_device_details
{
...
...
@@ -394,6 +410,22 @@ static const struct keyspan_device_details usa49w_device_details = {
.
baudclk
=
KEYSPAN_USA49W_BAUDCLK
,
};
static
const
struct
keyspan_device_details
usa49wlc_device_details
=
{
product_id:
keyspan_usa49wlc_product_id
,
msg_format:
msg_usa49
,
num_ports:
4
,
indat_endp_flip:
0
,
outdat_endp_flip:
0
,
indat_endpoints:
{
0x81
,
0x82
,
0x83
,
0x84
},
outdat_endpoints:
{
0x01
,
0x02
,
0x03
,
0x04
},
inack_endpoints:
{
-
1
,
-
1
,
-
1
,
-
1
},
outcont_endpoints:
{
-
1
,
-
1
,
-
1
,
-
1
},
instat_endpoint:
0x87
,
glocont_endpoint:
0x07
,
calculate_baud_rate:
keyspan_usa19w_calc_baud
,
baudclk:
KEYSPAN_USA19W_BAUDCLK
,
};
static
const
struct
keyspan_device_details
*
keyspan_devices
[]
=
{
&
usa18x_device_details
,
&
usa19_device_details
,
...
...
@@ -405,6 +437,7 @@ static const struct keyspan_device_details *keyspan_devices[] = {
&
usa28xa_device_details
,
/* 28xb not required as it renumerates as a 28x */
&
usa49w_device_details
,
&
usa49wlc_device_details
,
NULL
,
};
...
...
@@ -414,21 +447,25 @@ static struct usb_device_id keyspan_ids_combined[] = {
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19w_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qi_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qw_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_mpr_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28x_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xa_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xb_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49w_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49wlc_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa18x_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19w_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qi_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qw_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_mpr_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28x_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xa_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xb_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49w_product_id
)},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49wlc_product_id
)},
{
}
/* Terminating entry */
};
...
...
@@ -448,11 +485,13 @@ static struct usb_device_id keyspan_pre_ids[] = {
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qi_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qw_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19w_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_mpr_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28x_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xa_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xb_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49w_pre_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49wlc_pre_product_id
)
},
{
}
/* Terminating entry */
};
...
...
@@ -462,6 +501,7 @@ static struct usb_device_id keyspan_1port_ids[] = {
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qi_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19qw_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa19w_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_mpr_pre_product_id
)
},
{
}
/* Terminating entry */
};
...
...
@@ -469,11 +509,13 @@ static struct usb_device_id keyspan_2port_ids[] = {
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28x_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xa_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa28xb_product_id
)
},
{
}
/* Terminating entry */
};
static
struct
usb_device_id
keyspan_4port_ids
[]
=
{
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49w_product_id
)
},
{
USB_DEVICE
(
KEYSPAN_VENDOR_ID
,
keyspan_usa49wlc_product_id
)},
{
}
/* Terminating entry */
};
...
...
drivers/usb/serial/keyspan_mpr_fw.h
0 → 100644
View file @
0f13a700
/* keyspan_mpr_fw.h
The firmware contained herein as keyspan_mpr_fw.h is
Copyright (C) 1999-2001
Keyspan, A division of InnoSys Incorporated ("Keyspan")
as an unpublished work. This notice does not imply unrestricted or
public access to the source code from which this firmware image is
derived. Except as noted below this firmware image may not be
reproduced, used, sold or transferred to any third party without
Keyspan's prior written consent. All Rights Reserved.
Permission is hereby granted for the distribution of this firmware
image as part of a Linux or other Open Source operating system kernel
in text or binary form as required.
This firmware may not be modified and may only be used with
Keyspan hardware. Distribution and/or Modification of the
keyspan.c driver which includes this firmware, in whole or in
part, requires the inclusion of this statement."
static char theFirmwareDate53[] =
"04/26/2002 02:47p 11,570 USA53";
*/
static
const
struct
ezusb_hex_record
keyspan_mpr_firmware
[]
=
{
{
0x0033
,
3
,
{
0x02
,
0x00
,
0x1a
}},
{
0x001a
,
4
,
{
0x53
,
0xd8
,
0xef
,
0x32
}},
{
0x0003
,
16
,
{
0x8e
,
0x56
,
0x8f
,
0x57
,
0xe5
,
0x57
,
0x15
,
0x57
,
0xae
,
0x56
,
0x70
,
0x02
,
0x15
,
0x56
,
0x4e
,
0x60
}},
{
0x0013
,
7
,
{
0x05
,
0x12
,
0x0f
,
0xa2
,
0x80
,
0xee
,
0x22
}},
{
0x0023
,
3
,
{
0x02
,
0x00
,
0x46
}},
{
0x0046
,
16
,
{
0xc0
,
0xe0
,
0xc0
,
0x83
,
0xc0
,
0x82
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0xc0
,
0xd0
,
0x75
,
0xd0
,
0x08
}},
{
0x0056
,
16
,
{
0x30
,
0x99
,
0x0e
,
0x30
,
0x0b
,
0x07
,
0xa2
,
0x0e
,
0x92
,
0x9b
,
0x85
,
0x36
,
0x99
,
0xc2
,
0x99
,
0xd2
}},
{
0x0066
,
16
,
{
0x12
,
0x20
,
0x12
,
0x03
,
0x02
,
0x02
,
0xf9
,
0xc2
,
0x12
,
0x30
,
0x03
,
0x19
,
0x7e
,
0x7e
,
0x7f
,
0x40
}},
{
0x0076
,
16
,
{
0x75
,
0x1a
,
0x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,
0x39
,
0x74
,
0x80
,
0x2f
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7e
,
0xf5
,
0x83
,
0xe5
,
0x55
,
0xf0
,
0x30
,
0x10
,
0x11
,
0xaf
,
0x39
,
0x05
,
0x39
,
0x74
,
0x80
,
0x2f
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7e
,
0xf5
,
0x83
,
0xe5
,
0x98
,
0xf0
,
0xd2
,
0x0f
,
0xe5
,
0x39
,
0xc3
,
0x95
,
0x43
,
0x50
,
0x03
,
0x02
,
0x04
,
0x33
,
0x90
,
0x7f
,
0xb8
,
0xe0
,
0x30
,
0xe1
,
0x16
,
0xe5
,
0x39
,
0xc3
,
0x94
,
0x40
,
0x50
,
0x03
,
0x02
}},
{
0x0386
,
64
,
{
0x04
,
0x33
,
0x15
,
0x39
,
0x15
,
0x39
,
0x05
,
0x2b
,
0x43
,
0x34
,
0x01
,
0x02
,
0x04
,
0x33
,
0x90
,
0x7f
,
0xb7
,
0xe5
,
0x39
,
0xf0
,
0x75
,
0x39
,
0x00
,
0xc2
,
0x02
,
0x02
,
0x04
,
0x33
,
0x20
,
0x15
,
0x27
,
0xaf
,
0x39
,
0x05
,
0x39
,
0x74
,
0x00
,
0x2f
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7e
,
0xf5
,
0x83
,
0xe5
,
0x99
,
0xf0
,
0x30
,
0x10
,
0x4d
,
0xaf
,
0x39
,
0x05
,
0x39
,
0x74
,
0x00
,
0x2f
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7e
,
0xf5
}},
{
0x03c6
,
64
,
{
0x83
,
0xe5
,
0x98
,
0xf0
,
0x80
,
0x3a
,
0x85
,
0x99
,
0x55
,
0xe5
,
0x55
,
0xb5
,
0x47
,
0x04
,
0xd2
,
0x09
,
0x80
,
0x2e
,
0xe5
,
0x55
,
0xb5
,
0x46
,
0x04
,
0xc2
,
0x09
,
0x80
,
0x25
,
0xaf
,
0x39
,
0x05
,
0x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x74
,
0x11
,
0xf0
,
0x74
,
0x31
,
0xf0
,
0x74
,
0x12
,
0xf0
,
0x74
,
0x32
,
0xf0
,
0x74
,
0x13
,
0xf0
,
0x74
,
0x33
,
0xf0
,
0x74
,
0x14
,
0xf0
,
0x74
,
0x34
,
0xf0
}},
{
0x05c6
,
64
,
{
0xd2
,
0x03
,
0xd2
,
0x02
,
0xd2
,
0x08
,
0xe4
,
0x90
,
0x7f
,
0xcb
,
0xf0
,
0xa2
,
0x0c
,
0xe4
,
0x33
,
0xff
,
0x65
,
0x29
,
0x60
,
0x05
,
0x8f
,
0x29
,
0x43
,
0x34
,
0x01
,
0xa2
,
0x09
,
0xe4
,
0x33
,
0xff
,
0x65
,
0x2a
,
0x60
,
0x05
,
0x8f
,
0x2a
,
0x43
,
0x34
,
0x01
,
0x90
,
0x7f
,
0x9b
,
0xe0
,
0xff
,
0x54
,
0x08
,
0x64
,
0x08
,
0xf5
,
0x57
,
0x65
,
0x25
,
0x60
,
0x06
,
0x85
,
0x57
,
0x25
,
0x43
,
0x34
,
0x01
,
0xef
,
0x54
,
0x10
,
0x64
}},
{
0x0606
,
64
,
{
0x10
,
0xf5
,
0x57
,
0x65
,
0x26
,
0x60
,
0x06
,
0x85
,
0x57
,
0x26
,
0x43
,
0x34
,
0x01
,
0xef
,
0x54
,
0x40
,
0x64
,
0x40
,
0xf5
,
0x57
,
0x65
,
0x27
,
0x60
,
0x06
,
0x85
,
0x57
,
0x27
,
0x43
,
0x34
,
0x01
,
0xef
,
0x54
,
0x20
,
0x64
,
0x20
,
0xf5
,
0x57
,
0x65
,
0x28
,
0x60
,
0x06
,
0x85
,
0x57
,
0x28
,
0x43
,
0x34
,
0x01
,
0x90
,
0x7f
,
0x9a
,
0xe0
,
0x54
,
0x40
,
0x64
,
0x40
,
0xf5
,
0x57
,
0x65
,
0x2e
,
0x60
,
0x06
,
0x85
,
0x57
,
0x2e
}},
{
0x0646
,
64
,
{
0x43
,
0x34
,
0x01
,
0x30
,
0x07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03
,
0x75
,
0x82
,
0xd8
,
0x75
,
0x83
,
0x0d
,
0xef
,
0xf0
,
0x75
,
0x82
,
0xd1
,
0x75
,
0x83
,
0x0d
,
0xf0
,
0x75
,
0x82
,
0xca
,
0x75
,
0x83
,
0x0d
,
0xf0
,
0x75
,
0x82
,
0xc3
,
0x75
,
0x83
,
0x0d
,
0xf0
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0x04
,
0x75
,
0x82
,
0x9e
,
0x75
,
0x83
,
0x0d
,
0xf0
,
0x90
,
0x7f
,
0xef
,
0xe0
,
0xfe
,
0x90
,
0x7f
,
0xee
,
0xe0
}},
{
0x0846
,
64
,
{
0x7c
,
0x00
,
0x24
,
0x00
,
0xf5
,
0x5a
,
0xec
,
0x3e
,
0xf5
,
0x59
,
0x75
,
0x15
,
0x0d
,
0x75
,
0x16
,
0x99
,
0x75
,
0x82
,
0x9b
,
0x75
,
0x83
,
0x0d
,
0xe0
,
0x75
,
0x13
,
0x00
,
0xf5
,
0x14
,
0xd3
,
0xe5
,
0x14
,
0x95
,
0x5a
,
0xe5
,
0x13
,
0x95
,
0x59
,
0x40
,
0x06
,
0x85
,
0x59
,
0x13
,
0x85
,
0x5a
,
0x14
,
0x12
,
0x0b
,
0xba
,
0x02
,
0x0a
,
0x2b
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0x70
,
0x0b
,
0x75
,
0x56
,
0xff
,
0x75
,
0x57
,
0x0d
,
0x75
}},
{
0x0886
,
64
,
{
0x58
,
0xdc
,
0x80
,
0x2d
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0xb4
,
0x01
,
0x0b
,
0x75
,
0x56
,
0xff
,
0x75
,
0x57
,
0x0d
,
0x75
,
0x58
,
0xe0
,
0x80
,
0x1b
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0xb4
,
0x02
,
0x0b
,
0x75
,
0x56
,
0xff
,
0x75
,
0x57
,
0x0d
,
0x75
,
0x58
,
0xf0
,
0x80
,
0x09
,
0x75
,
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0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}},
{
0x0d86
,
64
,
{
0x00
,
0x12
,
0x01
,
0x10
,
0x01
,
0xff
,
0xff
,
0xff
,
0x40
,
0xcd
,
0x06
,
0x1c
,
0x01
,
0x01
,
0x00
,
0x01
,
0x02
,
0x00
,
0x02
,
0x09
,
0x02
,
0x43
,
0x00
,
0x01
,
0x01
,
0x00
,
0x80
,
0x32
,
0x09
,
0x04
,
0x00
,
0x00
,
0x07
,
0xff
,
0x00
,
0x00
,
0x00
,
0x07
,
0x05
,
0x01
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x02
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x03
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x81
,
0x02
,
0x40
,
0x00
}},
{
0x0dc6
,
64
,
{
0x01
,
0x07
,
0x05
,
0x82
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x83
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x84
,
0x02
,
0x40
,
0x00
,
0x01
,
0x04
,
0x03
,
0x09
,
0x04
,
0x10
,
0x03
,
0x4b
,
0x00
,
0x65
,
0x00
,
0x79
,
0x00
,
0x73
,
0x00
,
0x70
,
0x00
,
0x61
,
0x00
,
0x6e
,
0x00
,
0x2e
,
0x03
,
0x4b
,
0x00
,
0x65
,
0x00
,
0x79
,
0x00
,
0x73
,
0x00
,
0x70
,
0x00
,
0x61
,
0x00
,
0x6e
,
0x00
,
0x20
,
0x00
,
0x55
,
0x00
,
0x50
,
0x00
}},
{
0x0e06
,
64
,
{
0x53
,
0x00
,
0x48
,
0x00
,
0x31
,
0x00
,
0x31
,
0x00
,
0x32
,
0x00
,
0x2d
,
0x00
,
0x53
,
0x00
,
0x65
,
0x00
,
0x72
,
0x00
,
0x69
,
0x00
,
0x61
,
0x00
,
0x6c
,
0x00
,
0x22
,
0x03
,
0x55
,
0x00
,
0x53
,
0x00
,
0x41
,
0x00
,
0x2d
,
0x00
,
0x35
,
0x00
,
0x33
,
0x00
,
0x20
,
0x00
,
0x32
,
0x00
,
0x30
,
0x00
,
0x30
,
0x00
,
0x32
,
0x00
,
0x61
,
0x00
,
0x70
,
0x00
,
0x72
,
0x00
,
0x32
,
0x00
,
0x36
,
0x00
,
0x00
,
0x00
,
0xc0
,
0xe0
,
0xc0
,
0x83
}},
{
0x0e46
,
64
,
{
0xc0
,
0x82
,
0xc0
,
0x85
,
0xc0
,
0x84
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0x53
,
0x91
,
0xef
,
0x90
,
0x7f
,
0xab
,
0x74
,
0x02
,
0xf0
,
0xd2
,
0x06
,
0xd0
,
0x86
,
0xd0
,
0x84
,
0xd0
,
0x85
,
0xd0
,
0x82
,
0xd0
,
0x83
,
0xd0
,
0xe0
,
0x32
,
0xc0
,
0xe0
,
0xc0
,
0x83
,
0xc0
,
0x82
,
0xc0
,
0x85
,
0xc0
,
0x84
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0xd2
,
0x17
,
0x53
,
0x91
,
0xef
,
0x90
,
0x7f
,
0xab
,
0x74
,
0x01
,
0xf0
,
0xd0
,
0x86
,
0xd0
}},
{
0x0e86
,
64
,
{
0x84
,
0xd0
,
0x85
,
0xd0
,
0x82
,
0xd0
,
0x83
,
0xd0
,
0xe0
,
0x32
,
0xc0
,
0xe0
,
0xc0
,
0x83
,
0xc0
,
0x82
,
0xc0
,
0x85
,
0xc0
,
0x84
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0xd2
,
0x19
,
0x53
,
0x91
,
0xef
,
0x90
,
0x7f
,
0xab
,
0x74
,
0x08
,
0xf0
,
0xd0
,
0x86
,
0xd0
,
0x84
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
,
{
0x7f
,
0xa9
,
0x74
,
0x04
,
0xf0
,
0xd0
,
0x86
,
0xd0
,
0x84
,
0xd0
,
0x85
,
0xd0
,
0x82
,
0xd0
,
0x83
,
0xd0
,
0xe0
,
0x32
,
0xc0
,
0xe0
,
0xc0
,
0x83
,
0xc0
,
0x82
,
0xc0
,
0x85
,
0xc0
,
0x84
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0x53
,
0x91
,
0xef
,
0x90
,
0x7f
,
0xa9
,
0x74
,
0x08
,
0xf0
,
0xd0
,
0x86
,
0xd0
,
0x84
,
0xd0
,
0x85
,
0xd0
,
0x82
,
0xd0
,
0x83
,
0xd0
,
0xe0
,
0x32
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x54
,
0xfb
,
0xf0
,
0xe0
,
0x44
}},
{
0x0f86
,
61
,
{
0x08
,
0xf0
,
0x30
,
0x1a
,
0x04
,
0xe0
,
0x44
,
0x02
,
0xf0
,
0x7f
,
0xf4
,
0x7e
,
0x01
,
0x12
,
0x00
,
0x03
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x54
,
0xf7
,
0xf0
,
0xe0
,
0x44
,
0x04
,
0xf0
,
0x22
,
0x74
,
0x00
,
0xf5
,
0x86
,
0x90
,
0xfd
,
0xa5
,
0x7c
,
0x05
,
0xa3
,
0xe5
,
0x82
,
0x45
,
0x83
,
0x70
,
0xf9
,
0x22
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x44
,
0x80
,
0xf0
,
0x43
,
0x87
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x22
}},
{
0xffff
,
0
,
{
0x00
}}
};
drivers/usb/serial/keyspan_usa49wlc_fw.h
0 → 100644
View file @
0f13a700
/* keyspan_usa49w_fw.h
The firmware contained herein as keyspan_usa49w_fw.h is
Copyright (C) 1999-2003
Keyspan, A division of InnoSys Incorporated ("Keyspan")
as an unpublished work. This notice does not imply unrestricted or
public access to the source code from which this firmware image is
derived. Except as noted below this firmware image may not be
reproduced, used, sold or transferred to any third party without
Keyspan's prior written consent. All Rights Reserved.
Permission is hereby granted for the distribution of this firmware
image as part of a Linux or other Open Source operating system kernel
in text or binary form as required.
This firmware may not be modified and may only be used with
Keyspan hardware. Distribution and/or Modification of the
keyspan.c driver which includes this firmware, in whole or in
part, requires the inclusion of this statement."
static char theFirmwareDate49[] =
"02/14/2002 02:37p 19,347 USA49";
static char theFirmwareDate65[] =
"01/31/2003 09:34a 19,331 USA65";
*/
static
const
struct
ezusb_hex_record
keyspan_usa49wlc_firmware
[]
=
{
{
0x7f92
,
1
,
{
0x01
}},
{
0x0033
,
3
,
{
0x02
,
0x18
,
0xfb
}},
{
0x0036
,
13
,
{
0xe5
,
0x11
,
0x04
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
}},
{
0x0046
,
16
,
{
0xe4
,
0xff
,
0x74
,
0x40
,
0x2f
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7b
,
0xf5
,
0x83
,
0xe0
,
0xfe
,
0xe5
,
0x15
}},
{
0x0056
,
16
,
{
0x24
,
0x04
,
0xfd
,
0xe4
,
0x35
,
0x14
,
0xfa
,
0xa9
,
0x05
,
0x7b
,
0x01
,
0xef
,
0x7c
,
0x00
,
0x29
,
0xf9
}},
{
0x0066
,
16
,
{
0xec
,
0x3a
,
0xfa
,
0xee
,
0x12
,
0x11
,
0xec
,
0x0f
,
0xbf
,
0x22
,
0xd7
,
0xe5
,
0x15
,
0x24
,
0x05
,
0xf5
}},
{
0x0076
,
16
,
{
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x70
,
0x03
,
0x02
,
0x01
,
0x34
,
0xe5
,
0x15
,
0x24
,
0x09
}},
{
0x0086
,
16
,
{
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x70
,
0x0e
,
0xe5
,
0x15
,
0x24
,
0x0a
,
0xf5
,
0x82
}},
{
0x0096
,
16
,
{
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x60
,
0x18
,
0x7f
,
0x01
,
0xe4
,
0xfd
,
0x12
,
0x16
,
0x6b
,
0xe5
}},
{
0x00a6
,
16
,
{
0x15
,
0x24
,
0x31
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x54
,
0xcf
,
0xf0
,
0x80
,
0x41
}},
{
0x00b6
,
16
,
{
0xe5
,
0x15
,
0x24
,
0x06
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0xff
,
0x12
,
0x00
,
0x03
}},
{
0x00c6
,
16
,
{
0xe5
,
0x15
,
0x24
,
0x07
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0xff
,
0x12
,
0x15
,
0xab
}},
{
0x00d6
,
16
,
{
0x7f
,
0x01
,
0xe5
,
0x15
,
0x24
,
0x08
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0xfd
,
0x12
}},
{
0x00e6
,
16
,
{
0x16
,
0x6b
,
0xe5
,
0x15
,
0x24
,
0x31
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x44
,
0x30
}},
{
0x00f6
,
16
,
{
0xf0
,
0xe5
,
0x15
,
0x24
,
0x39
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x44
,
0x80
,
0xf0
}},
{
0x0003
,
16
,
{
0x90
,
0x78
,
0x41
,
0x74
,
0xf3
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0x74
,
0xbf
,
0xf0
,
0x90
,
0x78
,
0x41
,
0x74
}},
{
0x0013
,
16
,
{
0xf0
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xef
,
0xf0
,
0x90
,
0x78
,
0x41
,
0x74
,
0xf3
,
0xf0
,
0xe5
,
0x15
,
0x24
}},
{
0x0023
,
16
,
{
0x37
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x54
,
0x7f
,
0x90
,
0xc0
,
0x00
,
0xf0
,
0x22
}},
{
0x0043
,
3
,
{
0x02
,
0x1b
,
0x00
}},
{
0x0000
,
3
,
{
0x02
,
0x10
,
0x90
}},
{
0x0106
,
64
,
{
0x90
,
0x78
,
0x41
,
0x74
,
0xf4
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x39
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x90
,
0xc0
,
0x00
,
0xf0
,
0x90
,
0x78
,
0x41
,
0x74
,
0xf2
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x36
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x44
,
0x06
,
0x90
,
0xc0
,
0x00
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x0b
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x60
,
0x32
,
0xe5
,
0x15
,
0x24
,
0x0c
}},
{
0x0146
,
64
,
{
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x54
,
0x3f
,
0xff
,
0xe5
,
0x15
,
0x24
,
0x37
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xef
,
0xf0
,
0x90
,
0x78
,
0x41
,
0x74
,
0xf3
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x37
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x90
,
0xc0
,
0x00
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x0d
,
0xf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,
0xfe
}},
{
0x0646
,
64
,
{
0x07
,
0x99
,
0x00
,
0x08
,
0x0d
,
0x01
,
0x08
,
0x79
,
0x03
,
0x06
,
0x62
,
0x06
,
0x07
,
0x8a
,
0x08
,
0x07
,
0x7e
,
0x09
,
0x07
,
0x66
,
0x0a
,
0x07
,
0x75
,
0x0b
,
0x00
,
0x00
,
0x08
,
0xc8
,
0x90
,
0x7f
,
0xeb
,
0xe0
,
0x24
,
0xfe
,
0x60
,
0x1c
,
0x14
,
0x70
,
0x03
,
0x02
,
0x07
,
0x14
,
0x24
,
0x02
,
0x60
,
0x03
,
0x02
,
0x07
,
0x5c
,
0x74
,
0x19
,
0x90
,
0x7f
,
0xd4
,
0xf0
,
0x74
,
0x00
,
0x90
,
0x7f
,
0xd5
,
0xf0
,
0x02
,
0x08
,
0xcf
}},
{
0x0686
,
64
,
{
0x90
,
0x7f
,
0xea
,
0xe0
,
0x04
,
0x75
,
0x82
,
0x17
,
0x75
,
0x83
,
0x19
,
0xf0
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0x30
,
0xe0
,
0x04
,
0x7f
,
0x02
,
0x80
,
0x02
,
0x7f
,
0x03
,
0x75
,
0x82
,
0x82
,
0x75
,
0x83
,
0x19
,
0xef
,
0xf0
,
0x75
,
0x82
,
0x6d
,
0x75
,
0x83
,
0x19
,
0xf0
,
0x75
,
0x82
,
0x66
,
0x75
,
0x83
,
0x19
,
0xf0
,
0x75
,
0x82
,
0x5f
,
0x75
,
0x83
,
0x19
,
0xf0
,
0x75
,
0x82
,
0x58
,
0x75
,
0x83
,
0x19
,
0xf0
,
0x90
,
0x7f
,
0xea
}},
{
0x06c6
,
64
,
{
0xe0
,
0x30
,
0xe1
,
0x04
,
0x7f
,
0x64
,
0x80
,
0x02
,
0x7f
,
0x32
,
0x75
,
0x82
,
0x1a
,
0x75
,
0x83
,
0x19
,
0xef
,
0xf0
,
0x90
,
0x7f
,
0xef
,
0xe0
,
0xfe
,
0x90
,
0x7f
,
0xee
,
0xe0
,
0x7c
,
0x00
,
0x24
,
0x00
,
0xf5
,
0x18
,
0xec
,
0x3e
,
0xf5
,
0x17
,
0x75
,
0x33
,
0x19
,
0x75
,
0x34
,
0x12
,
0x75
,
0x82
,
0x14
,
0x75
,
0x83
,
0x19
,
0xe0
,
0x75
,
0x27
,
0x00
,
0xf5
,
0x28
,
0xd3
,
0xe5
,
0x28
,
0x95
,
0x18
,
0xe5
,
0x27
,
0x95
,
0x17
}},
{
0x0706
,
64
,
{
0x40
,
0x06
,
0x85
,
0x17
,
0x27
,
0x85
,
0x18
,
0x28
,
0x12
,
0x13
,
0x0d
,
0x02
,
0x08
,
0xcf
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0xff
,
0x12
,
0x14
,
0x5f
,
0xea
,
0x49
,
0x60
,
0x32
,
0x90
,
0x7f
,
0xee
,
0xe0
,
0x75
,
0x17
,
0x00
,
0xf5
,
0x18
,
0xae
,
0x02
,
0xaf
,
0x01
,
0x8e
,
0x33
,
0x8f
,
0x34
,
0x8f
,
0x82
,
0x8e
,
0x83
,
0xe0
,
0xfe
,
0xa3
,
0xe0
,
0x8e
,
0x27
,
0xf5
,
0x28
,
0xd3
,
0x95
,
0x18
,
0xe5
,
0x27
,
0x95
,
0x17
,
0x40
,
0x06
}},
{
0x0746
,
64
,
{
0x85
,
0x17
,
0x27
,
0x85
,
0x18
,
0x28
,
0x12
,
0x13
,
0x0d
,
0x02
,
0x08
,
0xcf
,
0x90
,
0x7f
,
0xb4
,
0xe0
,
0x44
,
0x01
,
0xf0
,
0x02
,
0x08
,
0xcf
,
0x90
,
0x7f
,
0xb4
,
0xe0
,
0x44
,
0x01
,
0xf0
,
0x02
,
0x08
,
0xcf
,
0x90
,
0x7f
,
0x00
,
0xe5
,
0x25
,
0xf0
,
0x90
,
0x7f
,
0xb5
,
0x74
,
0x01
,
0xf0
,
0x02
,
0x08
,
0xcf
,
0x90
,
0x7f
,
0xea
,
0xe0
,
0xf5
,
0x25
,
0x02
,
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54
,
0x07
,
0x2f
,
0x25
,
0xe0
,
0x24
,
0xb4
,
0xf5
,
0x82
,
0xe4
,
0x34
,
0x7f
,
0xf5
,
0x83
,
0x74
,
0x01
,
0xf0
,
0x80
,
0x10
,
0x90
,
0x7f
,
0xb4
,
0xe0
,
0x44
,
0x01
,
0xf0
}},
{
0x08c6
,
64
,
{
0x80
,
0x07
,
0x90
,
0x7f
,
0xb4
,
0xe0
,
0x44
,
0x01
,
0xf0
,
0x90
,
0x7f
,
0xb4
,
0xe0
,
0x44
,
0x02
,
0xf0
,
0x22
,
0xe5
,
0x12
,
0x54
,
0x0f
,
0x70
,
0x03
,
0x02
,
0x09
,
0xc8
,
0x12
,
0x16
,
0x9a
,
0xef
,
0x20
,
0xe1
,
0x75
,
0x12
,
0x16
,
0xf8
,
0xef
,
0x14
,
0xf5
,
0x18
,
0x12
,
0x18
,
0xc5
,
0xef
,
0x25
,
0x18
,
0xff
,
0xe4
,
0x33
,
0xfe
,
0xc3
,
0xef
,
0x94
,
0x80
,
0xee
,
0x64
,
0x80
,
0x94
,
0x80
,
0x50
,
0x59
,
0x85
,
0x15
,
0x82
}},
{
0x0906
,
64
,
{
0x85
,
0x14
,
0x83
,
0xe0
,
0xfe
,
0xa3
,
0xe0
,
0xff
,
0xf5
,
0x82
,
0x8e
,
0x83
,
0xe0
,
0x30
,
0xe0
,
0x11
,
0xe5
,
0x15
,
0x24
,
0x31
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x44
,
0x80
,
0xf0
,
0x80
,
0x0f
,
0xe5
,
0x15
,
0x24
,
0x31
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x54
,
0x7f
,
0xf0
,
0xe5
,
0x15
,
0x24
,
0x31
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x20
,
0xe2
,
0x12
,
0xe5
}},
{
0x0946
,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x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x30
,
0xe5
,
0x04
,
0xe5
,
0x16
,
0x42
,
0x13
,
0xe5
,
0x15
,
0x24
,
0x30
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe4
,
0xf0
,
0x22
,
0x30
,
0x09
,
0x03
,
0x02
,
0x0f
,
0x27
,
0xe5
,
0x24
,
0x14
,
0x60
,
0x2a
,
0x14
,
0x60
,
0x41
,
0x14
,
0x60
,
0x58
,
0x14
,
0x60
,
0x6f
,
0x24
,
0x04
,
0x60
,
0x03
,
0x02
,
0x0e
,
0xe5
,
0x7e
,
0x7b
,
0x7f
}},
{
0x0e46
,
64
,
{
0xc0
,
0x75
,
0x14
,
0x7b
,
0x75
,
0x15
,
0xc0
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2e
,
0xf0
,
0x75
,
0x16
,
0x01
,
0x12
,
0x12
,
0x9c
,
0x75
,
0x24
,
0x01
,
0x22
,
0x7e
,
0x7c
,
0x7f
,
0x00
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x00
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2d
,
0xf0
,
0x75
,
0x16
,
0x02
,
0x12
,
0x12
,
0x9c
,
0x75
,
0x24
,
0x02
,
0x22
,
0x7e
,
0x7c
,
0x7f
,
0x40
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x40
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2b
}},
{
0x0e86
,
64
,
{
0xf0
,
0x75
,
0x16
,
0x04
,
0x12
,
0x12
,
0x9c
,
0x75
,
0x24
,
0x03
,
0x22
,
0x7e
,
0x7c
,
0x7f
,
0x80
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x80
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x27
,
0xf0
,
0x75
,
0x16
,
0x08
,
0x12
,
0x12
,
0x9c
,
0x75
,
0x24
,
0x04
,
0x22
,
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
0xc5
,
0x82
,
0xc8
,
0xca
,
0xc5
,
0x83
,
0xca
,
0xdf
,
0xe9
,
0xde
,
0xe7
,
0x80
,
0xbe
,
0x90
,
0x7f
,
0xd2
,
0xe0
,
0x30
,
0xe1
,
0x03
,
0x02
,
0x11
,
0xa5
,
0xc2
,
0x09
,
0x90
,
0x7b
,
0x40
,
0xe0
,
0x14
,
0x60
,
0x26
,
0x14
,
0x60
,
0x3b
,
0x14
,
0x60
,
0x50
,
0x24
,
0x83
,
0x60
,
0x64
,
0x24
,
0x80
,
0x70
,
0x63
,
0x7e
,
0x7b
,
0x7f
,
0xc0
,
0x75
,
0x14
,
0x7b
,
0x75
,
0x15
}},
{
0x1146
,
64
,
{
0xc0
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2e
,
0xf0
,
0x75
,
0x16
,
0x01
,
0x12
,
0x00
,
0x46
,
0x80
,
0x4b
,
0x7e
,
0x7c
,
0x7f
,
0x00
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x00
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2d
,
0xf0
,
0x75
,
0x16
,
0x02
,
0x12
,
0x00
,
0x46
,
0x80
,
0x33
,
0x7e
,
0x7c
,
0x7f
,
0x40
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x40
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x2b
,
0xf0
,
0x75
,
0x16
,
0x04
,
0x12
,
0x00
,
0x46
,
0x80
,
0x1b
,
0x7e
}},
{
0x1186
,
64
,
{
0x7c
,
0x7f
,
0x80
,
0x75
,
0x14
,
0x7c
,
0x75
,
0x15
,
0x80
,
0x90
,
0x7f
,
0x98
,
0x74
,
0x27
,
0xf0
,
0x75
,
0x16
,
0x08
,
0x12
,
0x00
,
0x46
,
0x80
,
0x03
,
0x12
,
0x17
,
0x51
,
0xe4
,
0x90
,
0x7f
,
0xd3
,
0xf0
,
0x22
,
0xbb
,
0x01
,
0x06
,
0x89
,
0x82
,
0x8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37
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x54
,
0x7f
,
0x90
,
0xc0
,
0x00
,
0xf0
,
0x90
,
0x78
,
0x41
}},
{
0x1686
,
64
,
{
0x74
,
0xf7
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xef
,
0xf0
,
0x90
,
0x78
,
0x41
,
0x74
,
0xf5
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xed
,
0xf0
,
0x22
,
0xe5
,
0x15
,
0x24
,
0x04
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x14
,
0x60
,
0x0e
,
0x14
,
0x60
,
0x11
,
0x14
,
0x60
,
0x14
,
0x80
,
0x00
,
0x90
,
0x7f
,
0xc6
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xc8
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xca
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xcc
}},
{
0x16c6
,
64
,
{
0xe0
,
0xff
,
0x22
,
0xe5
,
0x15
,
0x24
,
0x04
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x14
,
0x60
,
0x0e
,
0x14
,
0x60
,
0x11
,
0x14
,
0x60
,
0x14
,
0x80
,
0x00
,
0x90
,
0x7f
,
0xb6
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xb8
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xba
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x7f
,
0xbc
,
0xe0
,
0xff
,
0x22
,
0xe5
,
0x15
,
0x24
,
0x04
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
,
0x14
,
0x60
}},
{
0x1706
,
64
,
{
0x0e
,
0x14
,
0x60
,
0x11
,
0x14
,
0x60
,
0x14
,
0x80
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
0x85
,
0xc0
,
0x84
,
0xc0
,
0x86
,
0x75
,
0x86
,
0x00
,
0xd2
,
0x08
,
0x53
,
0x91
,
0xef
,
0x90
,
0x7f
,
0xab
,
0x74
,
0x08
,
0xf0
,
0xd0
,
0x86
,
0xd0
,
0x84
,
0xd0
,
0x85
,
0xd0
,
0x82
,
0xd0
,
0x83
,
0xd0
,
0xe0
}},
{
0x17c6
,
64
,
{
0x32
,
0x12
,
0x18
,
0xb7
,
0xae
,
0x07
,
0x12
,
0x18
,
0xb7
,
0xad
,
0x07
,
0xee
,
0x6d
,
0x60
,
0x10
,
0x12
,
0x18
,
0xb7
,
0xae
,
0x07
,
0xee
,
0x6d
,
0x60
,
0x07
,
0x12
,
0x18
,
0xb7
,
0xad
,
0x07
,
0x80
,
0xec
,
0xaf
,
0x06
,
0x22
,
0x74
,
0x00
,
0xf5
,
0x86
,
0x90
,
0xfd
,
0xa5
,
0x7c
,
0x05
,
0xa3
,
0xe5
,
0x82
,
0x45
,
0x83
,
0x70
,
0xf9
,
0x22
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x44
,
0x80
,
0xf0
,
0x43
,
0x87
,
0x01
,
0x00
,
0x00
,
0x00
}},
{
0x1806
,
64
,
{
0x00
,
0x00
,
0x22
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x44
,
0x04
,
0xf0
,
0xe0
,
0x44
,
0x08
,
0xf0
,
0x30
,
0x0b
,
0x04
,
0xe0
,
0x44
,
0x02
,
0xf0
,
0x7f
,
0xf4
,
0x7e
,
0x01
,
0x12
,
0x18
,
0x60
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x54
,
0xf7
,
0xf0
,
0x22
,
0x12
,
0x13
,
0x77
,
0x12
,
0x17
,
0xf9
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x30
,
0xe7
,
0x0a
,
0x7f
,
0x05
,
0x7e
,
0x00
,
0x12
,
0x18
,
0x60
,
0x12
,
0x18
,
0x93
,
0x12
,
0x0a
,
0xce
,
0x22
,
0x03
}},
{
0x1846
,
64
,
{
0x35
,
0x80
,
0x00
,
0x00
,
0x03
,
0x2e
,
0x81
,
0x00
,
0x00
,
0xc1
,
0x85
,
0xc1
,
0x81
,
0xc1
,
0x08
,
0xc1
,
0x00
,
0xc1
,
0x06
,
0x01
,
0x22
,
0x00
,
0x01
,
0x24
,
0x00
,
0x00
,
0x8e
,
0x17
,
0x8f
,
0x18
,
0xe5
,
0x18
,
0x15
,
0x18
,
0xae
,
0x17
,
0x70
,
0x02
,
0x15
,
0x17
,
0x4e
,
0x60
,
0x08
,
0x12
,
0x17
,
0xe8
,
0x12
,
0x17
,
0xe8
,
0x80
,
0xeb
,
0x22
,
0xe5
,
0x15
,
0x24
,
0x04
,
0xf5
,
0x82
,
0xe4
,
0x35
,
0x14
,
0xf5
,
0x83
,
0xe0
}},
{
0x1886
,
64
,
{
0x04
,
0xff
,
0x44
,
0x10
,
0x90
,
0x7f
,
0xd7
,
0xf0
,
0xef
,
0x44
,
0x30
,
0xf0
,
0x22
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x44
,
0x01
,
0xf0
,
0x7f
,
0x0d
,
0x7e
,
0x00
,
0x12
,
0x18
,
0x60
,
0x90
,
0x7f
,
0xd6
,
0xe0
,
0x54
,
0xfe
,
0xf0
,
0x22
,
0xe5
,
0x11
,
0x24
,
0x02
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0xe5
,
0x11
,
0x24
,
0x03
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0xe5
}},
{
0x18c6
,
64
,
{
0x11
,
0x24
,
0x04
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0xe5
,
0x11
,
0x24
,
0x05
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0xe5
,
0x11
,
0x24
,
0x06
,
0x90
,
0x78
,
0x41
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0x90
,
0x78
,
0x41
,
0xe5
,
0x11
,
0xf0
,
0x90
,
0xc0
,
0x00
,
0xe0
,
0xff
,
0x22
,
0x53
,
0xd8
,
0xef
,
0x32
,
0x00
,
0x12
,
0x01
,
0x10
,
0x01
,
0xff
,
0xff
}},
{
0x1906
,
64
,
{
0xff
,
0x40
,
0xcd
,
0x06
,
0x2a
,
0x01
,
0x00
,
0x00
,
0x01
,
0x02
,
0x00
,
0x04
,
0x09
,
0x02
,
0x74
,
0x00
,
0x01
,
0x01
,
0x00
,
0xa0
,
0x32
,
0x09
,
0x04
,
0x00
,
0x00
,
0x0e
,
0xff
,
0x00
,
0x00
,
0x00
,
0x07
,
0x05
,
0x01
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x02
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x03
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x04
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x05
,
0x02
,
0x40
,
0x00
}},
{
0x1946
,
64
,
{
0x00
,
0x07
,
0x05
,
0x06
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x07
,
0x02
,
0x40
,
0x00
,
0x00
,
0x07
,
0x05
,
0x81
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x82
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x83
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x84
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x85
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x86
,
0x02
,
0x40
,
0x00
,
0x01
,
0x07
,
0x05
,
0x87
,
0x02
,
0x40
,
0x00
,
0x01
}},
{
0x1986
,
64
,
{
0x04
,
0x03
,
0x09
,
0x04
,
0x48
,
0x03
,
0x4b
,
0x00
,
0x65
,
0x00
,
0x79
,
0x00
,
0x73
,
0x00
,
0x70
,
0x00
,
0x61
,
0x00
,
0x6e
,
0x00
,
0x2c
,
0x00
,
0x20
,
0x00
,
0x61
,
0x00
,
0x20
,
0x00
,
0x64
,
0x00
,
0x69
,
0x00
,
0x76
,
0x00
,
0x69
,
0x00
,
0x73
,
0x00
,
0x69
,
0x00
,
0x6f
,
0x00
,
0x6e
,
0x00
,
0x20
,
0x00
,
0x6f
,
0x00
,
0x66
,
0x00
,
0x20
,
0x00
,
0x49
,
0x00
,
0x6e
,
0x00
,
0x6e
,
0x00
,
0x6f
,
0x00
,
0x53
,
0x00
,
0x79
,
0x00
}},
{
0x19c6
,
64
,
{
0x73
,
0x00
,
0x20
,
0x00
,
0x49
,
0x00
,
0x6e
,
0x00
,
0x63
,
0x00
,
0x2e
,
0x00
,
0x24
,
0x03
,
0x4b
,
0x00
,
0x65
,
0x00
,
0x79
,
0x00
,
0x73
,
0x00
,
0x70
,
0x00
,
0x61
,
0x00
,
0x6e
,
0x00
,
0x20
,
0x00
,
0x55
,
0x00
,
0x53
,
0x00
,
0x41
,
0x00
,
0x2d
,
0x00
,
0x34
,
0x00
,
0x39
,
0x00
,
0x57
,
0x00
,
0x4c
,
0x00
,
0x43
,
0x00
,
0x22
,
0x03
,
0x55
,
0x00
,
0x53
,
0x00
,
0x41
,
0x00
,
0x2d
,
0x00
,
0x36
,
0x00
,
0x35
,
0x00
,
0x20
,
0x00
}},
{
0x1a06
,
64
,
{
0x32
,
0x00
,
0x30
,
0x00
,
0x30
,
0x00
,
0x33
,
0x00
,
0x6a
,
0x00
,
0x61
,
0x00
,
0x6e
,
0x00
,
0x33
,
0x00
,
0x31
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}},
{
0x1a46
,
64
,
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}},
{
0x1a86
,
64
,
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}},
{
0x1ac6
,
64
,
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0x17
,
0x79
,
0x00
,
0x02
,
0x1b
}},
{
0x1b06
,
21
,
{
0x04
,
0x00
,
0x02
,
0x17
,
0x27
,
0x00
,
0x02
,
0x17
,
0xa0
,
0x00
,
0x02
,
0x1b
,
0x10
,
0x00
,
0x02
,
0x1b
,
0x14
,
0x00
,
0x02
,
0x15
,
0x78
}},
{
0xffff
,
0
,
{
0x00
}},
};
drivers/usb/serial/kl5kusb105.c
View file @
0f13a700
...
...
@@ -166,7 +166,7 @@ struct klsi_105_private {
unsigned
long
line_state
;
/* modem line settings */
/* write pool */
struct
urb
*
write_urb_pool
[
NUM_URBS
];
spinlock_t
write_urb_pool_
lock
;
spinlock_t
lock
;
unsigned
long
bytes_in
;
unsigned
long
bytes_out
;
};
...
...
@@ -284,7 +284,7 @@ static int klsi_105_startup (struct usb_serial *serial)
priv
->
bytes_out
=
0
;
usb_set_serial_port_data
(
&
serial
->
port
[
i
],
priv
);
spin_lock_init
(
&
priv
->
write_urb_pool_
lock
);
spin_lock_init
(
&
priv
->
lock
);
for
(
i
=
0
;
i
<
NUM_URBS
;
i
++
)
{
struct
urb
*
urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
...
...
@@ -326,7 +326,7 @@ static void klsi_105_shutdown (struct usb_serial *serial)
/* kill our write urb pool */
int
j
;
struct
urb
**
write_urbs
=
priv
->
write_urb_pool
;
spin_lock_irqsave
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
for
(
j
=
0
;
j
<
NUM_URBS
;
j
++
)
{
if
(
write_urbs
[
j
])
{
...
...
@@ -343,8 +343,7 @@ static void klsi_105_shutdown (struct usb_serial *serial)
}
}
spin_unlock_irqrestore
(
&
priv
->
write_urb_pool_lock
,
flags
);
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
kfree
(
priv
);
usb_set_serial_port_data
(
&
serial
->
port
[
i
],
NULL
);
...
...
@@ -360,6 +359,8 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp)
int
rc
;
int
i
;
unsigned
long
line_state
;
struct
klsi_105_port_settings
cfg
;
unsigned
long
flags
;
dbg
(
"%s port %d"
,
__FUNCTION__
,
port
->
number
);
...
...
@@ -374,21 +375,27 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp)
* Then read the modem line control and store values in
* priv->line_state.
*/
priv
->
cfg
.
pktlen
=
5
;
priv
->
cfg
.
baudrate
=
kl5kusb105a_sio_b9600
;
priv
->
cfg
.
databits
=
kl5kusb105a_dtb_8
;
priv
->
cfg
.
unknown1
=
0
;
priv
->
cfg
.
unknown2
=
1
;
klsi_105_chg_port_settings
(
serial
,
&
(
priv
->
cfg
)
);
cfg
.
pktlen
=
5
;
cfg
.
baudrate
=
kl5kusb105a_sio_b9600
;
cfg
.
databits
=
kl5kusb105a_dtb_8
;
cfg
.
unknown1
=
0
;
cfg
.
unknown2
=
1
;
klsi_105_chg_port_settings
(
serial
,
&
cfg
);
/* set up termios structure */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
termios
.
c_iflag
=
port
->
tty
->
termios
->
c_iflag
;
priv
->
termios
.
c_oflag
=
port
->
tty
->
termios
->
c_oflag
;
priv
->
termios
.
c_cflag
=
port
->
tty
->
termios
->
c_cflag
;
priv
->
termios
.
c_lflag
=
port
->
tty
->
termios
->
c_lflag
;
for
(
i
=
0
;
i
<
NCCS
;
i
++
)
priv
->
termios
.
c_cc
[
i
]
=
port
->
tty
->
termios
->
c_cc
[
i
];
priv
->
cfg
.
pktlen
=
cfg
.
pktlen
;
priv
->
cfg
.
baudrate
=
cfg
.
baudrate
;
priv
->
cfg
.
databits
=
cfg
.
databits
;
priv
->
cfg
.
unknown1
=
cfg
.
unknown1
;
priv
->
cfg
.
unknown2
=
cfg
.
unknown2
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/* READ_ON and urb submission */
usb_fill_bulk_urb
(
port
->
read_urb
,
serial
->
dev
,
...
...
@@ -422,7 +429,9 @@ static int klsi_105_open (struct usb_serial_port *port, struct file *filp)
rc
=
klsi_105_get_line_state
(
serial
,
&
line_state
);
if
(
rc
>=
0
)
{
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
line_state
=
line_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
dbg
(
"%s - read line state 0x%lx"
,
__FUNCTION__
,
line_state
);
retval
=
0
;
}
else
...
...
@@ -492,7 +501,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user,
unsigned
long
flags
;
int
i
;
/* since the pool is per-port we might not need the spin lock !? */
spin_lock_irqsave
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
for
(
i
=
0
;
i
<
NUM_URBS
;
i
++
)
{
if
(
priv
->
write_urb_pool
[
i
]
->
status
!=
-
EINPROGRESS
)
{
urb
=
priv
->
write_urb_pool
[
i
];
...
...
@@ -500,7 +509,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user,
break
;
}
}
spin_unlock_irqrestore
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
if
(
urb
==
NULL
)
{
dbg
(
"%s - no more free urbs"
,
__FUNCTION__
);
...
...
@@ -552,6 +561,7 @@ static int klsi_105_write (struct usb_serial_port *port, int from_user,
count
-=
size
;
}
exit:
/* lockless, but it's for debug info only... */
priv
->
bytes_out
+=
bytes_sent
;
return
bytes_sent
;
/* that's how much we wrote */
...
...
@@ -588,7 +598,7 @@ static int klsi_105_chars_in_buffer (struct usb_serial_port *port)
unsigned
long
flags
;
struct
klsi_105_private
*
priv
=
usb_get_serial_port_data
(
port
);
spin_lock_irqsave
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
for
(
i
=
0
;
i
<
NUM_URBS
;
++
i
)
{
if
(
priv
->
write_urb_pool
[
i
]
->
status
==
-
EINPROGRESS
)
{
...
...
@@ -596,7 +606,7 @@ static int klsi_105_chars_in_buffer (struct usb_serial_port *port)
}
}
spin_unlock_irqrestore
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
dbg
(
"%s - returns %d"
,
__FUNCTION__
,
chars
);
return
(
chars
);
...
...
@@ -609,14 +619,14 @@ static int klsi_105_write_room (struct usb_serial_port *port)
int
room
=
0
;
struct
klsi_105_private
*
priv
=
usb_get_serial_port_data
(
port
);
spin_lock_irqsave
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
for
(
i
=
0
;
i
<
NUM_URBS
;
++
i
)
{
if
(
priv
->
write_urb_pool
[
i
]
->
status
!=
-
EINPROGRESS
)
{
room
+=
URB_TRANSFER_BUFFER_SIZE
;
}
}
spin_unlock_irqrestore
(
&
priv
->
write_urb_pool_
lock
,
flags
);
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
dbg
(
"%s - returns %d"
,
__FUNCTION__
,
room
);
return
(
room
);
...
...
@@ -690,6 +700,8 @@ static void klsi_105_read_bulk_callback (struct urb *urb, struct pt_regs *regs)
tty_insert_flip_char
(
tty
,
((
__u8
*
)
data
)[
i
],
0
);
}
tty_flip_buffer_push
(
tty
);
/* again lockless, but debug info only */
priv
->
bytes_in
+=
bytes_sent
;
}
/* Continue trying to always read */
...
...
@@ -715,6 +727,11 @@ static void klsi_105_set_termios (struct usb_serial_port *port,
unsigned
int
old_iflag
=
old_termios
->
c_iflag
;
unsigned
int
cflag
=
port
->
tty
->
termios
->
c_cflag
;
unsigned
int
old_cflag
=
old_termios
->
c_cflag
;
struct
klsi_105_port_settings
cfg
;
unsigned
long
flags
;
/* lock while we are modifying the settings */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
/*
* Update baud rate
...
...
@@ -838,9 +855,11 @@ static void klsi_105_set_termios (struct usb_serial_port *port,
#endif
;
}
memcpy
(
&
cfg
,
&
priv
->
cfg
,
sizeof
(
cfg
));
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/* now commit changes to device */
klsi_105_chg_port_settings
(
serial
,
&
(
priv
->
cfg
)
);
klsi_105_chg_port_settings
(
serial
,
&
cfg
);
}
/* klsi_105_set_termios */
...
...
@@ -866,6 +885,7 @@ static int klsi_105_ioctl (struct usb_serial_port *port, struct file * file,
struct
usb_serial
*
serial
=
port
->
serial
;
struct
klsi_105_private
*
priv
=
usb_get_serial_port_data
(
port
);
int
mask
;
unsigned
long
flags
;
dbg
(
"%scmd=0x%x"
,
__FUNCTION__
,
cmd
);
...
...
@@ -881,11 +901,12 @@ static int klsi_105_ioctl (struct usb_serial_port *port, struct file * file,
err
(
"Reading line control failed (error = %d)"
,
rc
);
/* better return value? EAGAIN? */
return
-
ENOIOCTLCMD
;
}
else
{
priv
->
line_state
=
line_state
;
dbg
(
"%s - read line state 0x%lx"
,
__FUNCTION__
,
line_state
);
}
return
put_user
(
priv
->
line_state
,
(
unsigned
long
*
)
arg
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
line_state
=
line_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
dbg
(
"%s - read line state 0x%lx"
,
__FUNCTION__
,
line_state
);
return
put_user
(
line_state
,
(
unsigned
long
*
)
arg
);
};
case
TIOCMSET
:
/* Turns on and off the lines as specified by the mask */
...
...
drivers/usb/serial/mct_u232.c
View file @
0f13a700
...
...
@@ -171,6 +171,7 @@ static struct usb_serial_device_type mct_u232_device = {
struct
mct_u232_private
{
spinlock_t
lock
;
unsigned
long
control_state
;
/* Modem Line Setting (TIOCM) */
unsigned
char
last_lcr
;
/* Line Control Register */
unsigned
char
last_lsr
;
/* Line Status Register */
...
...
@@ -306,8 +307,9 @@ static int mct_u232_startup (struct usb_serial *serial)
/* allocate the private data structure */
priv
=
kmalloc
(
sizeof
(
struct
mct_u232_private
),
GFP_KERNEL
);
if
(
!
priv
)
return
(
-
1
);
/* error */
return
-
ENOMEM
;
/* set initial values for control structures */
spin_lock_init
(
&
priv
->
lock
);
priv
->
control_state
=
0
;
priv
->
last_lsr
=
0
;
priv
->
last_msr
=
0
;
...
...
@@ -339,6 +341,10 @@ static int mct_u232_open (struct usb_serial_port *port, struct file *filp)
struct
usb_serial
*
serial
=
port
->
serial
;
struct
mct_u232_private
*
priv
=
usb_get_serial_port_data
(
port
);
int
retval
=
0
;
unsigned
long
control_state
;
unsigned
long
flags
;
unsigned
char
last_lcr
;
unsigned
char
last_msr
;
dbg
(
"%s port %d"
,
__FUNCTION__
,
port
->
number
);
...
...
@@ -355,20 +361,27 @@ static int mct_u232_open (struct usb_serial_port *port, struct file *filp)
* sure if this is really necessary. But it should not harm
* either.
*/
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
if
(
port
->
tty
->
termios
->
c_cflag
&
CBAUD
)
priv
->
control_state
=
TIOCM_DTR
|
TIOCM_RTS
;
else
priv
->
control_state
=
0
;
mct_u232_set_modem_ctrl
(
serial
,
priv
->
control_state
);
priv
->
last_lcr
=
(
MCT_U232_DATA_BITS_8
|
MCT_U232_PARITY_NONE
|
MCT_U232_STOP_BITS_1
);
mct_u232_set_line_ctrl
(
serial
,
priv
->
last_lcr
);
control_state
=
priv
->
control_state
;
last_lcr
=
priv
->
last_lcr
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
mct_u232_set_modem_ctrl
(
serial
,
control_state
);
mct_u232_set_line_ctrl
(
serial
,
last_lcr
);
/* Read modem status and update control state */
mct_u232_get_modem_stat
(
serial
,
&
priv
->
last_msr
);
mct_u232_get_modem_stat
(
serial
,
&
last_msr
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
last_msr
=
last_msr
;
mct_u232_msr_to_state
(
&
priv
->
control_state
,
priv
->
last_msr
);
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
{
/* Puh, that's dirty */
...
...
@@ -523,6 +536,7 @@ static void mct_u232_read_int_callback (struct urb *urb, struct pt_regs *regs)
struct
tty_struct
*
tty
;
unsigned
char
*
data
=
urb
->
transfer_buffer
;
int
status
;
unsigned
long
flags
;
dbg
(
"%s - port %d"
,
__FUNCTION__
,
port
->
number
);
...
...
@@ -567,6 +581,7 @@ static void mct_u232_read_int_callback (struct urb *urb, struct pt_regs *regs)
* The interrupt-in pipe signals exceptional conditions (modem line
* signal changes and errors). data[0] holds MSR, data[1] holds LSR.
*/
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
last_msr
=
data
[
MCT_U232_MSR_INDEX
];
/* Record Control Line states */
...
...
@@ -597,6 +612,7 @@ static void mct_u232_read_int_callback (struct urb *urb, struct pt_regs *regs)
}
}
#endif
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
exit:
status
=
usb_submit_urb
(
urb
,
GFP_ATOMIC
);
if
(
status
)
...
...
@@ -614,7 +630,16 @@ static void mct_u232_set_termios (struct usb_serial_port *port,
unsigned
int
old_iflag
=
old_termios
->
c_iflag
;
unsigned
int
cflag
=
port
->
tty
->
termios
->
c_cflag
;
unsigned
int
old_cflag
=
old_termios
->
c_cflag
;
unsigned
long
flags
;
unsigned
long
control_state
;
unsigned
char
last_lcr
;
/* get a local copy of the current port settings */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
control_state
=
priv
->
control_state
;
last_lcr
=
priv
->
last_lcr
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/*
* Update baud rate
*/
...
...
@@ -622,12 +647,12 @@ static void mct_u232_set_termios (struct usb_serial_port *port,
/* reassert DTR and (maybe) RTS on transition from B0 */
if
(
(
old_cflag
&
CBAUD
)
==
B0
)
{
dbg
(
"%s: baud was B0"
,
__FUNCTION__
);
priv
->
control_state
|=
TIOCM_DTR
;
control_state
|=
TIOCM_DTR
;
/* don't set RTS if using hardware flow control */
if
(
!
(
old_cflag
&
CRTSCTS
))
{
priv
->
control_state
|=
TIOCM_RTS
;
control_state
|=
TIOCM_RTS
;
}
mct_u232_set_modem_ctrl
(
serial
,
priv
->
control_state
);
mct_u232_set_modem_ctrl
(
serial
,
control_state
);
}
switch
(
cflag
&
CBAUD
)
{
...
...
@@ -659,8 +684,8 @@ static void mct_u232_set_termios (struct usb_serial_port *port,
if
((
cflag
&
CBAUD
)
==
B0
)
{
dbg
(
"%s: baud is B0"
,
__FUNCTION__
);
/* Drop RTS and DTR */
priv
->
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
mct_u232_set_modem_ctrl
(
serial
,
priv
->
control_state
);
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
mct_u232_set_modem_ctrl
(
serial
,
control_state
);
}
}
...
...
@@ -672,36 +697,36 @@ static void mct_u232_set_termios (struct usb_serial_port *port,
||
(
cflag
&
CSTOPB
)
!=
(
old_cflag
&
CSTOPB
)
)
{
priv
->
last_lcr
=
0
;
last_lcr
=
0
;
/* set the parity */
if
(
cflag
&
PARENB
)
priv
->
last_lcr
|=
(
cflag
&
PARODD
)
?
last_lcr
|=
(
cflag
&
PARODD
)
?
MCT_U232_PARITY_ODD
:
MCT_U232_PARITY_EVEN
;
else
priv
->
last_lcr
|=
MCT_U232_PARITY_NONE
;
last_lcr
|=
MCT_U232_PARITY_NONE
;
/* set the number of data bits */
switch
(
cflag
&
CSIZE
)
{
case
CS5
:
priv
->
last_lcr
|=
MCT_U232_DATA_BITS_5
;
break
;
last_lcr
|=
MCT_U232_DATA_BITS_5
;
break
;
case
CS6
:
priv
->
last_lcr
|=
MCT_U232_DATA_BITS_6
;
break
;
last_lcr
|=
MCT_U232_DATA_BITS_6
;
break
;
case
CS7
:
priv
->
last_lcr
|=
MCT_U232_DATA_BITS_7
;
break
;
last_lcr
|=
MCT_U232_DATA_BITS_7
;
break
;
case
CS8
:
priv
->
last_lcr
|=
MCT_U232_DATA_BITS_8
;
break
;
last_lcr
|=
MCT_U232_DATA_BITS_8
;
break
;
default:
err
(
"CSIZE was not CS5-CS8, using default of 8"
);
priv
->
last_lcr
|=
MCT_U232_DATA_BITS_8
;
last_lcr
|=
MCT_U232_DATA_BITS_8
;
break
;
}
/* set the number of stop bits */
priv
->
last_lcr
|=
(
cflag
&
CSTOPB
)
?
last_lcr
|=
(
cflag
&
CSTOPB
)
?
MCT_U232_STOP_BITS_2
:
MCT_U232_STOP_BITS_1
;
mct_u232_set_line_ctrl
(
serial
,
priv
->
last_lcr
);
mct_u232_set_line_ctrl
(
serial
,
last_lcr
);
}
/*
...
...
@@ -714,11 +739,17 @@ static void mct_u232_set_termios (struct usb_serial_port *port,
/* Drop DTR/RTS if no flow control otherwise assert */
if
((
iflag
&
IXOFF
)
||
(
iflag
&
IXON
)
||
(
cflag
&
CRTSCTS
)
)
priv
->
control_state
|=
TIOCM_DTR
|
TIOCM_RTS
;
control_state
|=
TIOCM_DTR
|
TIOCM_RTS
;
else
priv
->
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
mct_u232_set_modem_ctrl
(
serial
,
priv
->
control_state
);
control_state
&=
~
(
TIOCM_DTR
|
TIOCM_RTS
);
mct_u232_set_modem_ctrl
(
serial
,
control_state
);
}
/* save off the modified port settings */
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
control_state
=
control_state
;
priv
->
last_lcr
=
last_lcr
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
}
/* mct_u232_set_termios */
...
...
@@ -726,10 +757,15 @@ static void mct_u232_break_ctl( struct usb_serial_port *port, int break_state )
{
struct
usb_serial
*
serial
=
port
->
serial
;
struct
mct_u232_private
*
priv
=
usb_get_serial_port_data
(
port
);
unsigned
char
lcr
=
priv
->
last_lcr
;
unsigned
char
lcr
;
unsigned
long
flags
;
dbg
(
"%sstate=%d"
,
__FUNCTION__
,
break_state
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
lcr
=
priv
->
last_lcr
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
if
(
break_state
)
lcr
|=
MCT_U232_SET_BREAK
;
...
...
@@ -743,13 +779,19 @@ static int mct_u232_ioctl (struct usb_serial_port *port, struct file * file,
struct
usb_serial
*
serial
=
port
->
serial
;
struct
mct_u232_private
*
priv
=
usb_get_serial_port_data
(
port
);
int
mask
;
unsigned
long
control_state
;
unsigned
long
flags
;
dbg
(
"%scmd=0x%x"
,
__FUNCTION__
,
cmd
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
control_state
=
priv
->
control_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
/* Based on code from acm.c and others */
switch
(
cmd
)
{
case
TIOCMGET
:
return
put_user
(
priv
->
control_state
,
(
unsigned
long
*
)
arg
);
return
put_user
(
control_state
,
(
unsigned
long
*
)
arg
);
break
;
case
TIOCMSET
:
/* Turns on and off the lines as specified by the mask */
...
...
@@ -762,20 +804,24 @@ static int mct_u232_ioctl (struct usb_serial_port *port, struct file * file,
/* RTS needs set */
if
(
((
cmd
==
TIOCMSET
)
&&
(
mask
&
TIOCM_RTS
))
||
(
cmd
==
TIOCMBIS
)
)
priv
->
control_state
|=
TIOCM_RTS
;
control_state
|=
TIOCM_RTS
;
else
priv
->
control_state
&=
~
TIOCM_RTS
;
control_state
&=
~
TIOCM_RTS
;
}
if
((
cmd
==
TIOCMSET
)
||
(
mask
&
TIOCM_DTR
))
{
/* DTR needs set */
if
(
((
cmd
==
TIOCMSET
)
&&
(
mask
&
TIOCM_DTR
))
||
(
cmd
==
TIOCMBIS
)
)
priv
->
control_state
|=
TIOCM_DTR
;
control_state
|=
TIOCM_DTR
;
else
priv
->
control_state
&=
~
TIOCM_DTR
;
control_state
&=
~
TIOCM_DTR
;
}
mct_u232_set_modem_ctrl
(
serial
,
priv
->
control_state
);
mct_u232_set_modem_ctrl
(
serial
,
control_state
);
spin_lock_irqsave
(
&
priv
->
lock
,
flags
);
priv
->
control_state
=
control_state
;
spin_unlock_irqrestore
(
&
priv
->
lock
,
flags
);
break
;
case
TIOCMIWAIT
:
...
...
drivers/usb/serial/pl2303.c
View file @
0f13a700
...
...
@@ -148,7 +148,8 @@ static struct usb_serial_device_type pl2303_device = {
.
shutdown
=
pl2303_shutdown
,
};
struct
pl2303_private
{
struct
pl2303_private
{
spinlock_t
lock
;
u8
line_control
;
u8
termios_initialized
;
};
...
...
@@ -164,6 +165,7 @@ static int pl2303_startup (struct usb_serial *serial)
if
(
!
priv
)
return
-
ENOMEM
;
memset
(
priv
,
0x00
,
sizeof
(
struct
pl2303_private
));
spin_lock_init
(
&
priv
->
lock
);
usb_set_serial_port_data
(
&
serial
->
port
[
i
],
priv
);
}
return
0
;
...
...
@@ -223,18 +225,21 @@ static void pl2303_set_termios (struct usb_serial_port *port, struct termios *ol
int
baud
;
int
i
;
dbg
(
"%s - port %d
, initialized = %d"
,
__FUNCTION__
,
port
->
number
,
priv
->
termios_initialized
);
dbg
(
"%s - port %d
"
,
__FUNCTION__
,
port
->
number
);
if
((
!
port
->
tty
)
||
(
!
port
->
tty
->
termios
))
{
dbg
(
"%s - no tty structures"
,
__FUNCTION__
);
return
;
}
spin_lock
(
&
priv
->
lock
);
if
(
!
priv
->
termios_initialized
)
{
*
(
port
->
tty
->
termios
)
=
tty_std_termios
;
port
->
tty
->
termios
->
c_cflag
=
B9600
|
CS8
|
CREAD
|
HUPCL
|
CLOCAL
;
priv
->
termios_initialized
=
1
;
}
spin_unlock
(
&
priv
->
lock
);
cflag
=
port
->
tty
->
termios
->
c_cflag
;
/* check that they really want us to change something */
if
(
old_termios
)
{
...
...
@@ -341,11 +346,16 @@ static void pl2303_set_termios (struct usb_serial_port *port, struct termios *ol
dbg
(
"0x21:0x20:0:0 %d"
,
i
);
if
(
cflag
&&
CBAUD
)
{
u8
control
;
spin_lock
(
&
priv
->
lock
);
if
((
cflag
&&
CBAUD
)
==
B0
)
priv
->
line_control
&=
~
(
CONTROL_DTR
|
CONTROL_RTS
);
else
priv
->
line_control
|=
(
CONTROL_DTR
|
CONTROL_RTS
);
set_control_lines
(
serial
->
dev
,
priv
->
line_control
);
control
=
priv
->
line_control
;
spin_unlock
(
&
priv
->
lock
);
set_control_lines
(
serial
->
dev
,
control
);
}
buf
[
0
]
=
buf
[
1
]
=
buf
[
2
]
=
buf
[
3
]
=
buf
[
4
]
=
buf
[
5
]
=
buf
[
6
]
=
0
;
...
...
@@ -444,48 +454,50 @@ static void pl2303_close (struct usb_serial_port *port, struct file *filp)
dbg
(
"%s - port %d"
,
__FUNCTION__
,
port
->
number
);
if
(
serial
->
dev
)
{
if
(
port
->
tty
)
{
c_cflag
=
port
->
tty
->
termios
->
c_cflag
;
if
(
c_cflag
&
HUPCL
)
{
/* drop DTR and RTS */
priv
=
usb_get_serial_port_data
(
port
);
priv
->
line_control
=
0
;
set_control_lines
(
port
->
serial
->
dev
,
priv
->
line_control
);
}
}
/* shutdown our urbs */
dbg
(
"%s - shutting down urbs"
,
__FUNCTION__
);
result
=
usb_unlink_urb
(
port
->
write_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (write_urb)"
" failed with reason: %d"
,
__FUNCTION__
,
result
);
/* shutdown our urbs */
dbg
(
"%s - shutting down urbs"
,
__FUNCTION__
);
result
=
usb_unlink_urb
(
port
->
write_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (write_urb)"
" failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
read_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (read_urb) "
"failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
read
_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (read_urb)
"
"
failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
interrupt_in
_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (interrupt_in_urb)
"
"
failed with reason: %d"
,
__FUNCTION__
,
result
);
result
=
usb_unlink_urb
(
port
->
interrupt_in_urb
);
if
(
result
)
dbg
(
"%s - usb_unlink_urb (interrupt_in_urb)"
" failed with reason: %d"
,
__FUNCTION__
,
result
);
if
(
port
->
tty
)
{
c_cflag
=
port
->
tty
->
termios
->
c_cflag
;
if
(
c_cflag
&
HUPCL
)
{
/* drop DTR and RTS */
priv
=
usb_get_serial_port_data
(
port
);
spin_lock
(
&
priv
->
lock
);
priv
->
line_control
=
0
;
spin_unlock
(
&
priv
->
lock
);
set_control_lines
(
port
->
serial
->
dev
,
0
);
}
}
}
static
int
set_modem_info
(
struct
usb_serial_port
*
port
,
unsigned
int
cmd
,
unsigned
int
*
value
)
{
struct
pl2303_private
*
priv
=
usb_get_serial_port_data
(
port
);
unsigned
int
arg
;
u8
control
;
if
(
copy_from_user
(
&
arg
,
value
,
sizeof
(
int
)))
return
-
EFAULT
;
spin_lock
(
&
priv
->
lock
);
switch
(
cmd
)
{
case
TIOCMBIS
:
if
(
arg
&
TIOCM_RTS
)
...
...
@@ -509,16 +521,22 @@ static int set_modem_info (struct usb_serial_port *port, unsigned int cmd, unsig
priv
->
line_control
|=
((
arg
&
TIOCM_DTR
)
?
CONTROL_DTR
:
0
);
break
;
}
control
=
priv
->
line_control
;
spin_unlock
(
&
priv
->
lock
);
return
set_control_lines
(
port
->
serial
->
dev
,
priv
->
line_
control
);
return
set_control_lines
(
port
->
serial
->
dev
,
control
);
}
static
int
get_modem_info
(
struct
usb_serial_port
*
port
,
unsigned
int
*
value
)
{
struct
pl2303_private
*
priv
=
usb_get_serial_port_data
(
port
);
unsigned
int
mcr
=
priv
->
line_control
;
unsigned
int
mcr
;
unsigned
int
result
;
spin_lock
(
&
priv
->
lock
);
mcr
=
priv
->
line_control
;
spin_unlock
(
&
priv
->
lock
);
result
=
((
mcr
&
CONTROL_DTR
)
?
TIOCM_DTR
:
0
)
|
((
mcr
&
CONTROL_RTS
)
?
TIOCM_RTS
:
0
);
...
...
drivers/usb/serial/visor.c
View file @
0f13a700
...
...
@@ -2,7 +2,7 @@
* USB HandSpring Visor, Palm m50x, and Sony Clie driver
* (supports all of the Palm OS USB devices)
*
* Copyright (C) 1999 - 200
2
* Copyright (C) 1999 - 200
3
* Greg Kroah-Hartman (greg@kroah.com)
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -183,34 +183,34 @@ static int palm_os_4_probe (struct usb_serial *serial, const struct usb_device_i
static
struct
usb_device_id
id_table
[]
=
{
{
USB_DEVICE
(
HANDSPRING_VENDOR_ID
,
HANDSPRING_VISOR_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_3_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_3_probe
},
{
USB_DEVICE
(
HANDSPRING_VENDOR_ID
,
HANDSPRING_TREO_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_M500_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_M505_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_M515_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_I705_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_M125_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_M130_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_TUNGSTEN_T_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_TUNGSTEN_Z_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
PALM_VENDOR_ID
,
PALM_ZIRE_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
SONY_VENDOR_ID
,
SONY_CLIE_4_0_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
SONY_VENDOR_ID
,
SONY_CLIE_S360_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
USB_DEVICE
(
SONY_VENDOR_ID
,
SONY_CLIE_4_1_ID
)
},
{
USB_DEVICE
(
SONY_VENDOR_ID
,
SONY_CLIE_NX60_ID
),
.
driver_info
=
(
unsigned
in
t
)
&
palm_os_4_probe
},
.
driver_info
=
(
kernel_ulong_
t
)
&
palm_os_4_probe
},
{
}
/* Terminating entry */
};
...
...
@@ -374,27 +374,22 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)
if
(
!
serial
)
return
;
if
(
serial
->
dev
)
{
/* only send a shutdown message if the
* device is still here */
transfer_buffer
=
kmalloc
(
0x12
,
GFP_KERNEL
);
if
(
!
transfer_buffer
)
{
dev_err
(
&
port
->
dev
,
"%s - kmalloc(%d) failed.
\n
"
,
__FUNCTION__
,
0x12
);
}
else
{
/* send a shutdown message to the device */
usb_control_msg
(
serial
->
dev
,
usb_rcvctrlpipe
(
serial
->
dev
,
0
),
VISOR_CLOSE_NOTIFICATION
,
0xc2
,
0x0000
,
0x0000
,
transfer_buffer
,
0x12
,
300
);
kfree
(
transfer_buffer
);
}
/* shutdown our bulk read */
usb_unlink_urb
(
port
->
read_urb
);
if
(
port
->
interrupt_in_urb
)
usb_unlink_urb
(
port
->
interrupt_in_urb
);
/* shutdown our urbs */
usb_unlink_urb
(
port
->
read_urb
);
if
(
port
->
interrupt_in_urb
)
usb_unlink_urb
(
port
->
interrupt_in_urb
);
/* Try to send shutdown message, if the device is gone, this will just fail. */
transfer_buffer
=
kmalloc
(
0x12
,
GFP_KERNEL
);
if
(
transfer_buffer
)
{
usb_control_msg
(
serial
->
dev
,
usb_rcvctrlpipe
(
serial
->
dev
,
0
),
VISOR_CLOSE_NOTIFICATION
,
0xc2
,
0x0000
,
0x0000
,
transfer_buffer
,
0x12
,
300
);
kfree
(
transfer_buffer
);
}
/* Uncomment the following line if you want to see some statistics in your syslog */
/* dev_info (&port->dev, "Bytes In = %d Bytes Out = %d\n", bytes_in, bytes_out); */
}
...
...
drivers/usb/storage/unusual_devs.h
View file @
0f13a700
...
...
@@ -137,12 +137,12 @@ UNUSUAL_DEV( 0x04da, 0x0901, 0x0100, 0x0200,
"LS-120 Camera"
,
US_SC_UFI
,
US_PR_CBI
,
NULL
,
0
),
/*
Reported by Peter Wchtler <pwaechtler@loewe-komp.de> */
UNUSUAL_DEV
(
0x04ce
,
0x0002
,
0x0074
,
0x0074
,
"ScanLogic"
,
"S
L11R-IDE 0049SQFP-1.2 A002
"
,
US_SC_SCSI
,
US_PR_BULK
,
NULL
,
US_
FL_FIX_INQUIRY
),
/*
From Yukihiro Nakai, via zaitcev@yahoo.com.
* This is needed for CB instead of CBI */
UNUSUAL_DEV
(
0x04da
,
0x0d05
,
0x0000
,
0x0000
,
"S
harp CE-CW05
"
,
"CD-R/RW Drive"
,
US_
SC_8070
,
US_PR_CB
,
NULL
,
0
),
/* Most of the following entries were developed with the help of
* Shuttle/SCM directly.
...
...
include/linux/usb.h
View file @
0f13a700
...
...
@@ -960,8 +960,6 @@ static inline unsigned int __create_pipe(struct usb_device *dev, unsigned int en
#define usb_rcvbulkpipe(dev,endpoint) ((PIPE_BULK << 30) | __create_pipe(dev,endpoint) | USB_DIR_IN)
#define usb_sndintpipe(dev,endpoint) ((PIPE_INTERRUPT << 30) | __create_pipe(dev,endpoint))
#define usb_rcvintpipe(dev,endpoint) ((PIPE_INTERRUPT << 30) | __create_pipe(dev,endpoint) | USB_DIR_IN)
#define usb_snddefctrl(dev) ((PIPE_CONTROL << 30))
#define usb_rcvdefctrl(dev) ((PIPE_CONTROL << 30) | USB_DIR_IN)
/* -------------------------------------------------------------------------- */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment