diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.h')
| -rw-r--r-- | drivers/message/fusion/mptbase.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/message/fusion/mptbase.h b/drivers/message/fusion/mptbase.h index 23ed3dec72a5..f71f22948477 100644 --- a/drivers/message/fusion/mptbase.h +++ b/drivers/message/fusion/mptbase.h | |||
| @@ -420,31 +420,6 @@ typedef struct _VirtDevice { | |||
| 420 | #define MPT_TARGET_FLAGS_LED_ON 0x80 | 420 | #define MPT_TARGET_FLAGS_LED_ON 0x80 |
| 421 | 421 | ||
| 422 | /* | 422 | /* |
| 423 | * /proc/mpt interface | ||
| 424 | */ | ||
| 425 | typedef struct { | ||
| 426 | const char *name; | ||
| 427 | mode_t mode; | ||
| 428 | int pad; | ||
| 429 | read_proc_t *read_proc; | ||
| 430 | write_proc_t *write_proc; | ||
| 431 | } mpt_proc_entry_t; | ||
| 432 | |||
| 433 | #define MPT_PROC_READ_RETURN(buf,start,offset,request,eof,len) \ | ||
| 434 | do { \ | ||
| 435 | len -= offset; \ | ||
| 436 | if (len < request) { \ | ||
| 437 | *eof = 1; \ | ||
| 438 | if (len <= 0) \ | ||
| 439 | return 0; \ | ||
| 440 | } else \ | ||
| 441 | len = request; \ | ||
| 442 | *start = buf + offset; \ | ||
| 443 | return len; \ | ||
| 444 | } while (0) | ||
| 445 | |||
| 446 | |||
| 447 | /* | ||
| 448 | * IOCTL structure and associated defines | 423 | * IOCTL structure and associated defines |
| 449 | */ | 424 | */ |
| 450 | 425 | ||
