[PATCH] char/isicom: Firmware loading

Firmware loading via hotplug added.
Cleanup firmware old-way fields in header file.

Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jiri Slaby
2006-01-09 20:54:25 -08:00
committed by Linus Torvalds
parent 9ac0948b20
commit e65c1db19f
2 changed files with 174 additions and 271 deletions

View File

@@ -4,46 +4,11 @@
/*#define ISICOM_DEBUG*/
/*#define ISICOM_DEBUG_DTR_RTS*/
/*
* Firmware Loader definitions ...
*/
#define __MultiTech ('M'<<8)
#define MIOCTL_LOAD_FIRMWARE (__MultiTech | 0x01)
#define MIOCTL_READ_FIRMWARE (__MultiTech | 0x02)
#define MIOCTL_XFER_CTRL (__MultiTech | 0x03)
#define MIOCTL_RESET_CARD (__MultiTech | 0x04)
#define DATA_SIZE 16
typedef struct {
unsigned short exec_segment;
unsigned short exec_addr;
} exec_record;
typedef struct {
int board; /* Board to load */
unsigned short addr;
unsigned short count;
} bin_header;
typedef struct {
int board; /* Board to load */
unsigned short addr;
unsigned short count;
unsigned short segment;
unsigned char bin_data[DATA_SIZE];
} bin_frame;
#ifdef __KERNEL__
#define YES 1
#define NO 0
#define ISILOAD_MISC_MINOR 155 /* /dev/isctl */
#define ISILOAD_NAME "ISILoad"
/*
* ISICOM Driver definitions ...
*