Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 45394 Details for
Bug 73562
gentoo-dev-kernel-2.6.9: gamecon driver broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch modified to apply cleanly on 2.6.9-r9
gamecon-2.6.9-r9.diff (text/plain), 1.33 KB, created by
Rafal Rzepecki
on 2004-12-06 10:17:15 UTC
(
hide
)
Description:
the patch modified to apply cleanly on 2.6.9-r9
Filename:
MIME Type:
Creator:
Rafal Rzepecki
Created:
2004-12-06 10:17:15 UTC
Size:
1.33 KB
patch
obsolete
>--- linux/drivers/input/joystick/gamecon.c.orig 2004-12-06 19:08:42.000000000 +0100 >+++ linux/drivers/input/joystick/gamecon.c 2004-12-06 19:11:03.880843224 +0100 >@@ -89,7 +89,7 @@ > static int gc_status_bit[] = { 0x40, 0x80, 0x20, 0x10, 0x08 }; > > static char *gc_names[] = { NULL, "SNES pad", "NES pad", "NES FourPort", "Multisystem joystick", >- "Multisystem 2-button joystick", "N64 controller", "PSX controller" >+ "Multisystem 2-button joystick", "N64 controller", "PSX controller", > "PSX DDR controller" }; > /* > * N64 support. >@@ -271,7 +271,8 @@ > udelay(gc_psx_delay); > read = parport_read_status(gc->pd->port) ^ 0x80; > for (j = 0; j < 5; j++) >- data[j] |= (read & gc_status_bit[j] & gc->pads[GC_PSX]) ? (1 << i) : 0; >+ data[j] |= (read & gc_status_bit[j] & (gc->pads[GC_PSX] | gc->pads[GC_DDR])) >+ ? (1 << i) : 0; > parport_write_data(gc->pd->port, cmd | GC_PSX_CLOCK | GC_PSX_POWER); > udelay(gc_psx_delay); > } >@@ -300,7 +301,7 @@ > gc_psx_command(gc, 0, data2); /* Dump status */ > > for (i =0; i < 5; i++) /* Find the longest pad */ >- if((gc_status_bit[i] & gc->pads[GC_PSX]) && (GC_PSX_LEN(id[i]) > max_len)) >+ if((gc_status_bit[i] & (gc->pads[GC_PSX] | gc->pads[GC_DDR])) && (GC_PSX_LEN(id[i]) > max_len)) > max_len = GC_PSX_LEN(id[i]); > > for (i = 0; i < max_len * 2; i++) { /* Read in all the data */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73562
:
45393
| 45394