/* * com_on_air_cs - basic driver for the Dosch and Amand "com on air" cards * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * authors: * (C) 2008 Andreas Schuler * (C) 2008 Matthias Wenzel * */ #include #include #include #include #include "sc14421.h" #include "dip_opcodes.h" static u_int deviceConfigBase = 0; void set_device_configbase(u_int configBase) { deviceConfigBase = configBase; } void wait_4_IO_cycles() { if (!deviceConfigBase) { printk("error: config base not set!\n"); return; } inb_p(deviceConfigBase); inb_p(deviceConfigBase); inb_p(deviceConfigBase); inb_p(deviceConfigBase); } void to_dip(volatile uint16_t *dst, unsigned char *src, int length) { int i; for (i=0; i