move SIIG parallel/serial combo cards to parport-serial.c
PATCH 1/1 move SIIG parallel/serial combo cards to parport-serial.c
Hi,
attached patch moves SIIG serial/parallel combo card support from serail and parport_pc drivers to parport_serial.
This patch is untested, but at least it doesn't broke my one port SIIG serial card :)
Best regards.
Signature · 2 lines
Andrey Panin | Embedded systems software engineer [email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/char/serial.c renamed from linux.vanilla/drivers/char/serial.c +0 -45
@@ -4667,15 +4667,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_1S_10x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_2 },
@@ -4685,15 +4676,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_2S_10x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_4 },
@@ -4712,24 +4694,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_1S_20x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 },
@@ -4737,15 +4701,6 @@PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_550,
linux/drivers/parport/parport_pc.c renamed from linux.vanilla/drivers/parport/parport_pc.c +1 -61
95 lines not on this page · raw message
linux/drivers/parport/parport_serial.c renamed from linux.vanilla/drivers/parport/parport_serial.c +98 -0
128 lines not on this page · raw message
Quoted 2 lines · Andrey Panin
attached patch moves SIIG serial/parallel combo card support from serail and
parport_pcdrivers toparport_serial.
Please CC: me with any comments on this patch.
Thanks.
--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
Hi all,
fixed version of patch attached, previous patch contained 2 cut-and-paste errors.
Q: may be it will be better to EXPORT_SYMBOL pci_siig10x_fn() and pci_siig20x_fn() functions from serial.c, instead of duplicating it ?
Best regards.
Signature · 2 lines
Andrey Panin | Embedded systems software engineer [email protected] | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/char/serial.c renamed from linux.vanilla/drivers/char/serial.c +0 -45
@@ -4667,15 +4667,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_1S_10x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_10x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_1 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_2 },
@@ -4685,15 +4676,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_2S_10x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_10x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig10x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig10x_4 },
@@ -4712,24 +4694,6 @@ {PCI_VENDOR_ID_SIIG , PCI_DEVICE_ID_SIIG_1S_20x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S1P_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2P1S_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_0 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_550,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 },
@@ -4737,15 +4701,6 @@PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_850, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_550, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_650, -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , - pbn_siig20x_2 }, - { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S1P_20x_850,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , pbn_siig20x_2 }, { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_550,
linux/drivers/parport/parport_pc.c renamed from linux.vanilla/drivers/parport/parport_pc.c +1 -61
95 lines not on this page · raw message
linux/drivers/parport/parport_serial.c renamed from linux.vanilla/drivers/parport/parport_serial.c +95 -0
125 lines not on this page · raw message