lkml.org 
[lkml]   [2001]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Hi,

please test the attached patch (2.4.6-ac2), it should add support for ISAPNP
PCMCIA card.

Best regards.

PS. Is your modem working now ?

--
Andrey Panin | Embedded systems software engineer
pazke@orbita1.ru | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.ascdiff -ur -X /usr/dontdiff /linux.vanilla/drivers/pcmcia/i82365.c /linux/drivers/pcmcia/i82365.c
--- /linux.vanilla/drivers/pcmcia/i82365.c Mon Jun 25 23:29:02 2001
+++ /linux/drivers/pcmcia/i82365.c Wed Jul 11 20:55:19 2001
@@ -57,6 +57,10 @@
#include <pcmcia/ss.h>
#include <pcmcia/cs.h>

+#ifdef CONFIG_ISAPNP
+#include <linux/isapnp.h>
+#endif
+
/* ISA-bus controllers */
#include "i82365.h"
#include "cirrus.h"
@@ -816,10 +820,56 @@

#ifdef CONFIG_ISA

+#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE))
+#define I82365_ISAPNP
+#endif
+
+#ifdef I82365_ISAPNP
+static struct isapnp_device_id id_table[] __initdata = {
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('P', 'N', 'P'),
+ ISAPNP_FUNCTION(0x0e00), (unsigned long) "Intel 82365-Compatible" },
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('P', 'N', 'P'),
+ ISAPNP_FUNCTION(0x0e01), (unsigned long) "Cirrus Logic CL-PD6720" },
+ { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('P', 'N', 'P'),
+ ISAPNP_FUNCTION(0x0e02), (unsigned long) "VLSI VL82C146" },
+ { 0 }
+};
+MODULE_DEVICE_TABLE(isapnp, id_table);
+
+static struct pci_dev *i82365_pnpdev;
+#endif
+
static void __init isa_probe(void)
{
int i, j, sock, k, ns, id;
ioaddr_t port;
+#ifdef I82365_ISAPNP
+ struct isapnp_device_id *devid;
+ struct pci_dev *dev;
+
+ for (devid = id_table; devid->vendor; devid++) {
+ if ((dev = isapnp_find_dev(NULL, devid->vendor, devid->function, NULL))) {
+ printk("ISAPNP ");
+
+ if (dev->prepare && dev->prepare(dev) < 0) {
+ printk("prepare failed\n");
+ break;
+ }
+
+ if (dev->activate && dev->activate(dev) < 0) {
+ printk("activate failed\n");
+ break;
+ }
+
+ if ((i365_base = pci_resource_start(dev, 0))) {
+ printk("no resources ?\n");
+ break;
+ }
+ i82365_pnpdev = dev;
+ break;
+ }
+ }
+#endif

if (check_region(i365_base, 2) != 0) {
if (sockets == 0)
@@ -1604,6 +1654,10 @@
i365_set(i, I365_CSCINT, 0);
release_region(socket[i].ioaddr, 2);
}
+#if defined(CONFIG_ISA) && defined(I82365_ISAPNP)
+ if (i82365_pnpdev && i82365_pnpdev->deactivate)
+ i82365_pnpdev->deactivate(i82365_pnpdev);
+#endif
} /* exit_i82365 */

module_init(init_i82365);[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 12:56    [W:0.028 / U:68.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site