diff options
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
| -rw-r--r-- | drivers/s390/net/qeth_core.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index a2088af51cc5..97ef37b51068 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h | |||
| @@ -439,10 +439,10 @@ struct qeth_qdio_buffer { | |||
| 439 | }; | 439 | }; |
| 440 | 440 | ||
| 441 | struct qeth_qdio_q { | 441 | struct qeth_qdio_q { |
| 442 | struct qdio_buffer qdio_bufs[QDIO_MAX_BUFFERS_PER_Q]; | 442 | struct qdio_buffer *qdio_bufs[QDIO_MAX_BUFFERS_PER_Q]; |
| 443 | struct qeth_qdio_buffer bufs[QDIO_MAX_BUFFERS_PER_Q]; | 443 | struct qeth_qdio_buffer bufs[QDIO_MAX_BUFFERS_PER_Q]; |
| 444 | int next_buf_to_init; | 444 | int next_buf_to_init; |
| 445 | } __attribute__ ((aligned(256))); | 445 | }; |
| 446 | 446 | ||
| 447 | struct qeth_qdio_out_buffer { | 447 | struct qeth_qdio_out_buffer { |
| 448 | struct qdio_buffer *buffer; | 448 | struct qdio_buffer *buffer; |
| @@ -465,7 +465,7 @@ enum qeth_out_q_states { | |||
| 465 | }; | 465 | }; |
| 466 | 466 | ||
| 467 | struct qeth_qdio_out_q { | 467 | struct qeth_qdio_out_q { |
| 468 | struct qdio_buffer qdio_bufs[QDIO_MAX_BUFFERS_PER_Q]; | 468 | struct qdio_buffer *qdio_bufs[QDIO_MAX_BUFFERS_PER_Q]; |
| 469 | struct qeth_qdio_out_buffer *bufs[QDIO_MAX_BUFFERS_PER_Q]; | 469 | struct qeth_qdio_out_buffer *bufs[QDIO_MAX_BUFFERS_PER_Q]; |
| 470 | struct qdio_outbuf_state *bufstates; /* convenience pointer */ | 470 | struct qdio_outbuf_state *bufstates; /* convenience pointer */ |
| 471 | int queue_no; | 471 | int queue_no; |
| @@ -483,7 +483,7 @@ struct qeth_qdio_out_q { | |||
| 483 | atomic_t used_buffers; | 483 | atomic_t used_buffers; |
| 484 | /* indicates whether PCI flag must be set (or if one is outstanding) */ | 484 | /* indicates whether PCI flag must be set (or if one is outstanding) */ |
| 485 | atomic_t set_pci_flags_count; | 485 | atomic_t set_pci_flags_count; |
| 486 | } __attribute__ ((aligned(256))); | 486 | }; |
| 487 | 487 | ||
| 488 | struct qeth_qdio_info { | 488 | struct qeth_qdio_info { |
| 489 | atomic_t state; | 489 | atomic_t state; |
| @@ -766,6 +766,11 @@ struct carrier_info { | |||
| 766 | __u32 port_speed; | 766 | __u32 port_speed; |
| 767 | }; | 767 | }; |
| 768 | 768 | ||
| 769 | struct qeth_switch_info { | ||
| 770 | __u32 capabilities; | ||
| 771 | __u32 settings; | ||
| 772 | }; | ||
| 773 | |||
| 769 | #define QETH_NAPI_WEIGHT NAPI_POLL_WEIGHT | 774 | #define QETH_NAPI_WEIGHT NAPI_POLL_WEIGHT |
| 770 | 775 | ||
| 771 | struct qeth_card { | 776 | struct qeth_card { |
| @@ -946,6 +951,8 @@ struct qeth_cmd_buffer *qeth_wait_for_buffer(struct qeth_channel *); | |||
| 946 | int qeth_mdio_read(struct net_device *, int, int); | 951 | int qeth_mdio_read(struct net_device *, int, int); |
| 947 | int qeth_snmp_command(struct qeth_card *, char __user *); | 952 | int qeth_snmp_command(struct qeth_card *, char __user *); |
| 948 | int qeth_query_oat_command(struct qeth_card *, char __user *); | 953 | int qeth_query_oat_command(struct qeth_card *, char __user *); |
| 954 | int qeth_query_switch_attributes(struct qeth_card *card, | ||
| 955 | struct qeth_switch_info *sw_info); | ||
| 949 | int qeth_query_card_info(struct qeth_card *card, | 956 | int qeth_query_card_info(struct qeth_card *card, |
| 950 | struct carrier_info *carrier_info); | 957 | struct carrier_info *carrier_info); |
| 951 | int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *, | 958 | int qeth_send_control_data(struct qeth_card *, int, struct qeth_cmd_buffer *, |
