Lines Matching defs:qeth_card_t
798 typedef struct qeth_card_t { /* pointed to by dev->priv */ struct
799 int easy_copy_cap;
802 struct qeth_card_options options;
804 atomic_t is_startlaned; /* card did not get a stoplan */
808 __u8 link_type;
810 int is_guest_lan;
811 int do_pfix; /* to avoid doing diag98 for vm guest lan devices */
814 atomic_t inbound_buffer_refcnt[QDIO_MAX_BUFFERS_PER_Q];
815 qdio_buffer_t inbound_qdio_buffers[QDIO_MAX_BUFFERS_PER_Q];
816 void *real_inb_buffer_addr[QDIO_MAX_BUFFERS_PER_Q]
820 void *inbound_buffer_pool_entry[QDIO_MAX_BUFFERS_PER_Q]
822 volatile int inbound_buffer_pool_entry_used[QDIO_MAX_BUFFERS_PER_Q];
823 int inbound_buffer_entry_no[QDIO_MAX_BUFFERS_PER_Q];
826 spinlock_t requeue_input_lock;
827 atomic_t requeue_position;
828 atomic_t requeue_counter;
831 volatile int send_state[QETH_MAX_QUEUES];
832 volatile int outbound_first_free_buffer[QETH_MAX_QUEUES];
833 atomic_t outbound_used_buffers[QETH_MAX_QUEUES];
834 int outbound_buffer_send_state[QETH_MAX_QUEUES]
836 int send_retries[QETH_MAX_QUEUES][QDIO_MAX_BUFFERS_PER_Q];
837 volatile int outbound_bytes_in_buffer[QETH_MAX_QUEUES];
838 qeth_ringbuffer_t *outbound_ringbuffer[QETH_MAX_QUEUES];
839 atomic_t outbound_ringbuffer_lock[QETH_MAX_QUEUES];
840 atomic_t last_pci_pos[QETH_MAX_QUEUES];
843 int (*hard_header)(struct sk_buff *,struct net_device *,
845 int (*rebuild_header)(struct sk_buff *);
846 int (*hard_header_cache)(struct neighbour *,struct hh_cache *);
847 void (*header_cache_update)(struct hh_cache *,struct net_device *,
849 unsigned short (*type_trans)(struct sk_buff *,struct net_device *);
850 int type_trans_correction;
854 struct vlan_group *vlangrp;
855 spinlock_t vlan_lock;
858 char dev_name[DEV_NAME_LEN]; /* pointed to by dev->name */
859 char dev_basename[DEV_NAME_LEN];
860 struct net_device *dev;
861 struct net_device_stats *stats;
863 int no_queues;
866 qeth_perf_stats_t perf_stats;
870 atomic_t is_registered; /* card registered as netdev? */
871 atomic_t is_hardsetup; /* card has gone through hardsetup */
872 atomic_t is_softsetup; /* card is setup by softsetup */
873 atomic_t is_open; /* card is in use */
874 atomic_t is_gone; /* after a msck */
876 int has_irq; /* once a request_irq was successful */
879 spinlock_t softsetup_lock;
880 spinlock_t hardsetup_lock;
881 struct semaphore ioctl_sem;
882 atomic_t softsetup_thread_is_running;
883 struct semaphore softsetup_thread_sem;
884 struct tq_struct tqueue_sst;
886 atomic_t escape_softsetup; /* active, when recovery has to
888 struct semaphore reinit_thread_sem;
889 atomic_t in_recovery;
890 atomic_t reinit_counter;
893 atomic_t break_out;
894 atomic_t problem;
895 struct tq_struct tqueue;
897 struct {
902 } seqno;
904 struct {
915 } token;
918 int type;
919 __u16 func_level;
920 int initial_mtu;
921 int max_mtu;
922 int inbound_buffer_size;
924 int is_multicast_different; /* if multicast traffic is to be sent
927 int can_do_async_iqd; /* 1 only on IQD that provides async
930 __u32 ipa_supported;
931 __u32 ipa_enabled;
932 __u32 ipa6_supported;
933 __u32 ipa6_enabled;
934 __u32 adp_supported;
936 __u32 csum_enable_mask;
938 atomic_t startlan_attempts;
939 atomic_t enable_routing_attempts4;
940 atomic_t rt4fld;
942 atomic_t enable_routing_attempts6;
943 atomic_t rt6fld;
945 int unique_id;
948 int devno0;
949 int devno1;
950 int devno2;
951 int irq0;
952 int irq1;
953 int irq2;
954 unsigned short unit_addr2;
955 unsigned short cula;
956 unsigned short dev_type;
957 unsigned char dev_model;
958 unsigned short chpid;
959 devstat_t *devstat0;
960 devstat_t *devstat1;
961 devstat_t *devstat2;
963 unsigned char ipa_buf[QETH_BUFSIZE];
964 unsigned char send_buf[QETH_BUFSIZE];
967 unsigned char *ioctl_data_buffer;
968 unsigned char *ioctl_buffer_pointer;
969 int ioctl_returncode;
970 int ioctl_buffersize;
971 int number_of_entries;
974 atomic_t ioctl_data_has_arrived;
975 wait_queue_head_t ioctl_wait_q;
976 atomic_t ioctl_wait_q_active;
977 spinlock_t ioctl_wait_q_lock;
980 qeth_dma_stuff_t *dma_stuff;
982 unsigned int ipa_timeout;
984 atomic_t write_busy;
986 int read_state; /* only modified and read in the int handler */
989 rwlock_t vipa_list_lock;
990 qeth_vipa_entry_t *vipa_list;
993 atomic_t shutdown_phase;
994 volatile int save_state_flag;
995 atomic_t data_has_arrived;
996 wait_queue_head_t wait_q;
997 atomic_t wait_q_active;
998 spinlock_t wait_q_lock; /* for wait_q_active and wait_q */
1000 atomic_t final_status0;
1001 atomic_t final_status1;
1002 atomic_t final_status2;
1026 struct qeth_card_t *next; argument
1027 } qeth_card_t; typedef