patch-2.3.36 linux/drivers/pcmcia/tcic.c
Next file: linux/drivers/pcmcia/yenta.c
Previous file: linux/drivers/pcmcia/pci_socket.h
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Mon Jan 3 16:34:56 2000
- Orig file:
v2.3.35/linux/drivers/pcmcia/tcic.c
- Orig date:
Wed Dec 29 13:13:17 1999
diff -u --recursive --new-file v2.3.35/linux/drivers/pcmcia/tcic.c linux/drivers/pcmcia/tcic.c
@@ -929,18 +929,37 @@
/*====================================================================*/
-int tcic_get_bridge(unsigned int sock, struct cb_bridge_map *m)
+static void tcic_proc_setup(unsigned int sock, struct proc_dir_entry *base)
{
- return -EINVAL;
}
-#define tcic_set_bridge tcic_get_bridge
+static int tcic_init(unsigned int s)
+{
+ int i;
+ pccard_io_map io = { 0, 0, 0, 0, 1 };
+ pccard_mem_map mem = { 0, 0, 0, 0, 0, 0 };
+
+ mem.sys_stop = 0x1000;
+ tcic_set_socket(s, &dead_socket);
+ for (i = 0; i < 2; i++) {
+ io.map = i;
+ tcic_set_io_map(s, &io);
+ }
+ for (i = 0; i < 5; i++) {
+ mem.map = i;
+ tcic_set_mem_map(s, &mem);
+ }
+ return 0;
+}
-void tcic_proc_setup(unsigned int sock, struct proc_dir_entry *base)
+static int tcic_suspend(unsigned int sock)
{
+ return tcic_set_socket(sock, &dead_socket);
}
static struct pccard_operations tcic_operations = {
+ tcic_init,
+ tcic_suspend,
tcic_register_callback,
tcic_inquire_socket,
tcic_get_status,
@@ -950,8 +969,6 @@
tcic_set_io_map,
tcic_get_mem_map,
tcic_set_mem_map,
- tcic_get_bridge,
- tcic_set_bridge,
tcic_proc_setup
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)