Commit e65c1db1 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] char/isicom: Firmware loading

Firmware loading via hotplug added.
Cleanup firmware old-way fields in header file.
Signed-off-by: default avatarJiri Slaby <xslaby@fi.muni.cz>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9ac0948b
This diff is collapsed.
......@@ -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 ...
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment