diff options
Diffstat (limited to 'include/linux/cyclades.h')
-rw-r--r-- | include/linux/cyclades.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h index 72aa00cc4b2d..8f3dcd30828f 100644 --- a/include/linux/cyclades.h +++ b/include/linux/cyclades.h | |||
@@ -512,11 +512,11 @@ struct cyclades_card { | |||
512 | void __iomem *base_addr; | 512 | void __iomem *base_addr; |
513 | void __iomem *ctl_addr; | 513 | void __iomem *ctl_addr; |
514 | int irq; | 514 | int irq; |
515 | int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */ | 515 | unsigned int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */ |
516 | int first_line; /* minor number of first channel on card */ | 516 | unsigned int first_line; /* minor number of first channel on card */ |
517 | int nports; /* Number of ports in the card */ | 517 | unsigned int nports; /* Number of ports in the card */ |
518 | int bus_index; /* address shift - 0 for ISA, 1 for PCI */ | 518 | int bus_index; /* address shift - 0 for ISA, 1 for PCI */ |
519 | int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */ | 519 | int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */ |
520 | spinlock_t card_lock; | 520 | spinlock_t card_lock; |
521 | struct cyclades_port *ports; | 521 | struct cyclades_port *ports; |
522 | }; | 522 | }; |
@@ -566,10 +566,9 @@ struct cyclades_port { | |||
566 | int rtsdtr_inv; | 566 | int rtsdtr_inv; |
567 | int chip_rev; | 567 | int chip_rev; |
568 | int custom_divisor; | 568 | int custom_divisor; |
569 | int x_char; /* to be pushed out ASAP */ | 569 | u8 x_char; /* to be pushed out ASAP */ |
570 | int close_delay; | 570 | int close_delay; |
571 | unsigned short closing_wait; | 571 | unsigned short closing_wait; |
572 | unsigned long event; | ||
573 | int count; /* # of fd on device */ | 572 | int count; /* # of fd on device */ |
574 | int breakon; | 573 | int breakon; |
575 | int breakoff; | 574 | int breakoff; |
@@ -584,7 +583,6 @@ struct cyclades_port { | |||
584 | struct cyclades_monitor mon; | 583 | struct cyclades_monitor mon; |
585 | struct cyclades_idle_stats idle_stats; | 584 | struct cyclades_idle_stats idle_stats; |
586 | struct cyclades_icount icount; | 585 | struct cyclades_icount icount; |
587 | struct work_struct tqueue; | ||
588 | wait_queue_head_t open_wait; | 586 | wait_queue_head_t open_wait; |
589 | wait_queue_head_t close_wait; | 587 | wait_queue_head_t close_wait; |
590 | struct completion shutdown_wait; | 588 | struct completion shutdown_wait; |
@@ -592,19 +590,6 @@ struct cyclades_port { | |||
592 | int throttle; | 590 | int throttle; |
593 | }; | 591 | }; |
594 | 592 | ||
595 | /* | ||
596 | * Events are used to schedule things to happen at timer-interrupt | ||
597 | * time, instead of at cy interrupt time. | ||
598 | */ | ||
599 | #define Cy_EVENT_READ_PROCESS 0 | ||
600 | #define Cy_EVENT_WRITE_WAKEUP 1 | ||
601 | #define Cy_EVENT_HANGUP 2 | ||
602 | #define Cy_EVENT_BREAK 3 | ||
603 | #define Cy_EVENT_OPEN_WAKEUP 4 | ||
604 | #define Cy_EVENT_SHUTDOWN_WAKEUP 5 | ||
605 | #define Cy_EVENT_DELTA_WAKEUP 6 | ||
606 | #define Cy_EVENT_Z_RX_FULL 7 | ||
607 | |||
608 | #define CLOSING_WAIT_DELAY 30*HZ | 593 | #define CLOSING_WAIT_DELAY 30*HZ |
609 | #define CY_CLOSING_WAIT_NONE 65535 | 594 | #define CY_CLOSING_WAIT_NONE 65535 |
610 | #define CY_CLOSING_WAIT_INF 0 | 595 | #define CY_CLOSING_WAIT_INF 0 |