diff options
Diffstat (limited to 'drivers/net/wireless/arlan-proc.c')
-rw-r--r-- | drivers/net/wireless/arlan-proc.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/net/wireless/arlan-proc.c b/drivers/net/wireless/arlan-proc.c index 66a0b330b756..b22983e6c0cf 100644 --- a/drivers/net/wireless/arlan-proc.c +++ b/drivers/net/wireless/arlan-proc.c | |||
@@ -819,15 +819,15 @@ static int arlan_sysctl_reset(ctl_table * ctl, int write, | |||
819 | #define CTBLN(card,nam) \ | 819 | #define CTBLN(card,nam) \ |
820 | { .procname = #nam,\ | 820 | { .procname = #nam,\ |
821 | .data = &(arlan_conf[card].nam),\ | 821 | .data = &(arlan_conf[card].nam),\ |
822 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = &proc_dointvec} | 822 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = proc_dointvec} |
823 | #ifdef ARLAN_DEBUGGING | 823 | #ifdef ARLAN_DEBUGGING |
824 | 824 | ||
825 | #define ARLAN_PROC_DEBUG_ENTRIES \ | 825 | #define ARLAN_PROC_DEBUG_ENTRIES \ |
826 | { .procname = "entry_exit_debug",\ | 826 | { .procname = "entry_exit_debug",\ |
827 | .data = &arlan_entry_and_exit_debug,\ | 827 | .data = &arlan_entry_and_exit_debug,\ |
828 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = &proc_dointvec},\ | 828 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = proc_dointvec},\ |
829 | { .procname = "debug", .data = &arlan_debug,\ | 829 | { .procname = "debug", .data = &arlan_debug,\ |
830 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = &proc_dointvec}, | 830 | .maxlen = sizeof(int), .mode = 0600, .proc_handler = proc_dointvec}, |
831 | #else | 831 | #else |
832 | #define ARLAN_PROC_DEBUG_ENTRIES | 832 | #define ARLAN_PROC_DEBUG_ENTRIES |
833 | #endif | 833 | #endif |
@@ -864,7 +864,7 @@ static int arlan_sysctl_reset(ctl_table * ctl, int write, | |||
864 | CTBLN(cardNo, channelSet), \ | 864 | CTBLN(cardNo, channelSet), \ |
865 | { .procname = "name",\ | 865 | { .procname = "name",\ |
866 | .data = arlan_conf[cardNo].siteName,\ | 866 | .data = arlan_conf[cardNo].siteName,\ |
867 | .maxlen = 16, .mode = 0600, .proc_handler = &proc_dostring},\ | 867 | .maxlen = 16, .mode = 0600, .proc_handler = proc_dostring},\ |
868 | CTBLN(cardNo,waitTime),\ | 868 | CTBLN(cardNo,waitTime),\ |
869 | CTBLN(cardNo,lParameter),\ | 869 | CTBLN(cardNo,lParameter),\ |
870 | CTBLN(cardNo,_15),\ | 870 | CTBLN(cardNo,_15),\ |
@@ -906,35 +906,35 @@ static ctl_table arlan_conf_table0[] = | |||
906 | .data = &arlan_drive_info, | 906 | .data = &arlan_drive_info, |
907 | .maxlen = ARLAN_STR_SIZE, | 907 | .maxlen = ARLAN_STR_SIZE, |
908 | .mode = 0400, | 908 | .mode = 0400, |
909 | .proc_handler = &arlan_sysctl_infotxRing, | 909 | .proc_handler = arlan_sysctl_infotxRing, |
910 | }, | 910 | }, |
911 | { | 911 | { |
912 | .procname = "arlan0-rxRing", | 912 | .procname = "arlan0-rxRing", |
913 | .data = &arlan_drive_info, | 913 | .data = &arlan_drive_info, |
914 | .maxlen = ARLAN_STR_SIZE, | 914 | .maxlen = ARLAN_STR_SIZE, |
915 | .mode = 0400, | 915 | .mode = 0400, |
916 | .proc_handler = &arlan_sysctl_inforxRing, | 916 | .proc_handler = arlan_sysctl_inforxRing, |
917 | }, | 917 | }, |
918 | { | 918 | { |
919 | .procname = "arlan0-18", | 919 | .procname = "arlan0-18", |
920 | .data = &arlan_drive_info, | 920 | .data = &arlan_drive_info, |
921 | .maxlen = ARLAN_STR_SIZE, | 921 | .maxlen = ARLAN_STR_SIZE, |
922 | .mode = 0400, | 922 | .mode = 0400, |
923 | .proc_handler = &arlan_sysctl_info18, | 923 | .proc_handler = arlan_sysctl_info18, |
924 | }, | 924 | }, |
925 | { | 925 | { |
926 | .procname = "arlan0-ring", | 926 | .procname = "arlan0-ring", |
927 | .data = &arlan_drive_info, | 927 | .data = &arlan_drive_info, |
928 | .maxlen = ARLAN_STR_SIZE, | 928 | .maxlen = ARLAN_STR_SIZE, |
929 | .mode = 0400, | 929 | .mode = 0400, |
930 | .proc_handler = &arlan_sysctl_info161719, | 930 | .proc_handler = arlan_sysctl_info161719, |
931 | }, | 931 | }, |
932 | { | 932 | { |
933 | .procname = "arlan0-shm-cpy", | 933 | .procname = "arlan0-shm-cpy", |
934 | .data = &arlan_drive_info, | 934 | .data = &arlan_drive_info, |
935 | .maxlen = ARLAN_STR_SIZE, | 935 | .maxlen = ARLAN_STR_SIZE, |
936 | .mode = 0400, | 936 | .mode = 0400, |
937 | .proc_handler = &arlan_sysctl_info, | 937 | .proc_handler = arlan_sysctl_info, |
938 | }, | 938 | }, |
939 | #endif | 939 | #endif |
940 | { | 940 | { |
@@ -942,14 +942,14 @@ static ctl_table arlan_conf_table0[] = | |||
942 | .data = &conf_reset_result, | 942 | .data = &conf_reset_result, |
943 | .maxlen = 100, | 943 | .maxlen = 100, |
944 | .mode = 0400, | 944 | .mode = 0400, |
945 | .proc_handler = &arlan_configure | 945 | .proc_handler = arlan_configure |
946 | }, | 946 | }, |
947 | { | 947 | { |
948 | .procname = "reset0", | 948 | .procname = "reset0", |
949 | .data = &conf_reset_result, | 949 | .data = &conf_reset_result, |
950 | .maxlen = 100, | 950 | .maxlen = 100, |
951 | .mode = 0400, | 951 | .mode = 0400, |
952 | .proc_handler = &arlan_sysctl_reset, | 952 | .proc_handler = arlan_sysctl_reset, |
953 | }, | 953 | }, |
954 | { } | 954 | { } |
955 | }; | 955 | }; |
@@ -965,35 +965,35 @@ static ctl_table arlan_conf_table1[] = | |||
965 | .data = &arlan_drive_info, | 965 | .data = &arlan_drive_info, |
966 | .maxlen = ARLAN_STR_SIZE, | 966 | .maxlen = ARLAN_STR_SIZE, |
967 | .mode = 0400, | 967 | .mode = 0400, |
968 | .proc_handler = &arlan_sysctl_infotxRing, | 968 | .proc_handler = arlan_sysctl_infotxRing, |
969 | }, | 969 | }, |
970 | { | 970 | { |
971 | .procname = "arlan1-rxRing", | 971 | .procname = "arlan1-rxRing", |
972 | .data = &arlan_drive_info, | 972 | .data = &arlan_drive_info, |
973 | .maxlen = ARLAN_STR_SIZE, | 973 | .maxlen = ARLAN_STR_SIZE, |
974 | .mode = 0400, | 974 | .mode = 0400, |
975 | .proc_handler = &arlan_sysctl_inforxRing, | 975 | .proc_handler = arlan_sysctl_inforxRing, |
976 | }, | 976 | }, |
977 | { | 977 | { |
978 | .procname = "arlan1-18", | 978 | .procname = "arlan1-18", |
979 | .data = &arlan_drive_info, | 979 | .data = &arlan_drive_info, |
980 | .maxlen = ARLAN_STR_SIZE, | 980 | .maxlen = ARLAN_STR_SIZE, |
981 | .mode = 0400, | 981 | .mode = 0400, |
982 | .proc_handler = &arlan_sysctl_info18, | 982 | .proc_handler = arlan_sysctl_info18, |
983 | }, | 983 | }, |
984 | { | 984 | { |
985 | .procname = "arlan1-ring", | 985 | .procname = "arlan1-ring", |
986 | .data = &arlan_drive_info, | 986 | .data = &arlan_drive_info, |
987 | .maxlen = ARLAN_STR_SIZE, | 987 | .maxlen = ARLAN_STR_SIZE, |
988 | .mode = 0400, | 988 | .mode = 0400, |
989 | .proc_handler = &arlan_sysctl_info161719, | 989 | .proc_handler = arlan_sysctl_info161719, |
990 | }, | 990 | }, |
991 | { | 991 | { |
992 | .procname = "arlan1-shm-cpy", | 992 | .procname = "arlan1-shm-cpy", |
993 | .data = &arlan_drive_info, | 993 | .data = &arlan_drive_info, |
994 | .maxlen = ARLAN_STR_SIZE, | 994 | .maxlen = ARLAN_STR_SIZE, |
995 | .mode = 0400, | 995 | .mode = 0400, |
996 | .proc_handler = &arlan_sysctl_info, | 996 | .proc_handler = arlan_sysctl_info, |
997 | }, | 997 | }, |
998 | #endif | 998 | #endif |
999 | { | 999 | { |
@@ -1001,14 +1001,14 @@ static ctl_table arlan_conf_table1[] = | |||
1001 | .data = &conf_reset_result, | 1001 | .data = &conf_reset_result, |
1002 | .maxlen = 100, | 1002 | .maxlen = 100, |
1003 | .mode = 0400, | 1003 | .mode = 0400, |
1004 | .proc_handler = &arlan_configure, | 1004 | .proc_handler = arlan_configure, |
1005 | }, | 1005 | }, |
1006 | { | 1006 | { |
1007 | .procname = "reset1", | 1007 | .procname = "reset1", |
1008 | .data = &conf_reset_result, | 1008 | .data = &conf_reset_result, |
1009 | .maxlen = 100, | 1009 | .maxlen = 100, |
1010 | .mode = 0400, | 1010 | .mode = 0400, |
1011 | .proc_handler = &arlan_sysctl_reset, | 1011 | .proc_handler = arlan_sysctl_reset, |
1012 | }, | 1012 | }, |
1013 | { } | 1013 | { } |
1014 | }; | 1014 | }; |
@@ -1024,35 +1024,35 @@ static ctl_table arlan_conf_table2[] = | |||
1024 | .data = &arlan_drive_info, | 1024 | .data = &arlan_drive_info, |
1025 | .maxlen = ARLAN_STR_SIZE, | 1025 | .maxlen = ARLAN_STR_SIZE, |
1026 | .mode = 0400, | 1026 | .mode = 0400, |
1027 | .proc_handler = &arlan_sysctl_infotxRing, | 1027 | .proc_handler = arlan_sysctl_infotxRing, |
1028 | }, | 1028 | }, |
1029 | { | 1029 | { |
1030 | .procname = "arlan2-rxRing", | 1030 | .procname = "arlan2-rxRing", |
1031 | .data = &arlan_drive_info, | 1031 | .data = &arlan_drive_info, |
1032 | .maxlen = ARLAN_STR_SIZE, | 1032 | .maxlen = ARLAN_STR_SIZE, |
1033 | .mode = 0400, | 1033 | .mode = 0400, |
1034 | .proc_handler = &arlan_sysctl_inforxRing, | 1034 | .proc_handler = arlan_sysctl_inforxRing, |
1035 | }, | 1035 | }, |
1036 | { | 1036 | { |
1037 | .procname = "arlan2-18", | 1037 | .procname = "arlan2-18", |
1038 | .data = &arlan_drive_info, | 1038 | .data = &arlan_drive_info, |
1039 | .maxlen = ARLAN_STR_SIZE, | 1039 | .maxlen = ARLAN_STR_SIZE, |
1040 | .mode = 0400, | 1040 | .mode = 0400, |
1041 | .proc_handler = &arlan_sysctl_info18, | 1041 | .proc_handler = arlan_sysctl_info18, |
1042 | }, | 1042 | }, |
1043 | { | 1043 | { |
1044 | .procname = "arlan2-ring", | 1044 | .procname = "arlan2-ring", |
1045 | .data = &arlan_drive_info, | 1045 | .data = &arlan_drive_info, |
1046 | .maxlen = ARLAN_STR_SIZE, | 1046 | .maxlen = ARLAN_STR_SIZE, |
1047 | .mode = 0400, | 1047 | .mode = 0400, |
1048 | .proc_handler = &arlan_sysctl_info161719, | 1048 | .proc_handler = arlan_sysctl_info161719, |
1049 | }, | 1049 | }, |
1050 | { | 1050 | { |
1051 | .procname = "arlan2-shm-cpy", | 1051 | .procname = "arlan2-shm-cpy", |
1052 | .data = &arlan_drive_info, | 1052 | .data = &arlan_drive_info, |
1053 | .maxlen = ARLAN_STR_SIZE, | 1053 | .maxlen = ARLAN_STR_SIZE, |
1054 | .mode = 0400, | 1054 | .mode = 0400, |
1055 | .proc_handler = &arlan_sysctl_info, | 1055 | .proc_handler = arlan_sysctl_info, |
1056 | }, | 1056 | }, |
1057 | #endif | 1057 | #endif |
1058 | { | 1058 | { |
@@ -1060,14 +1060,14 @@ static ctl_table arlan_conf_table2[] = | |||
1060 | .data = &conf_reset_result, | 1060 | .data = &conf_reset_result, |
1061 | .maxlen = 100, | 1061 | .maxlen = 100, |
1062 | .mode = 0400, | 1062 | .mode = 0400, |
1063 | .proc_handler = &arlan_configure, | 1063 | .proc_handler = arlan_configure, |
1064 | }, | 1064 | }, |
1065 | { | 1065 | { |
1066 | .procname = "reset2", | 1066 | .procname = "reset2", |
1067 | .data = &conf_reset_result, | 1067 | .data = &conf_reset_result, |
1068 | .maxlen = 100, | 1068 | .maxlen = 100, |
1069 | .mode = 0400, | 1069 | .mode = 0400, |
1070 | .proc_handler = &arlan_sysctl_reset, | 1070 | .proc_handler = arlan_sysctl_reset, |
1071 | }, | 1071 | }, |
1072 | { } | 1072 | { } |
1073 | }; | 1073 | }; |
@@ -1083,35 +1083,35 @@ static ctl_table arlan_conf_table3[] = | |||
1083 | .data = &arlan_drive_info, | 1083 | .data = &arlan_drive_info, |
1084 | .maxlen = ARLAN_STR_SIZE, | 1084 | .maxlen = ARLAN_STR_SIZE, |
1085 | .mode = 0400, | 1085 | .mode = 0400, |
1086 | .proc_handler = &arlan_sysctl_infotxRing, | 1086 | .proc_handler = arlan_sysctl_infotxRing, |
1087 | }, | 1087 | }, |
1088 | { | 1088 | { |
1089 | .procname = "arlan3-rxRing", | 1089 | .procname = "arlan3-rxRing", |
1090 | .data = &arlan_drive_info, | 1090 | .data = &arlan_drive_info, |
1091 | .maxlen = ARLAN_STR_SIZE, | 1091 | .maxlen = ARLAN_STR_SIZE, |
1092 | .mode = 0400, | 1092 | .mode = 0400, |
1093 | .proc_handler = &arlan_sysctl_inforxRing, | 1093 | .proc_handler = arlan_sysctl_inforxRing, |
1094 | }, | 1094 | }, |
1095 | { | 1095 | { |
1096 | .procname = "arlan3-18", | 1096 | .procname = "arlan3-18", |
1097 | .data = &arlan_drive_info, | 1097 | .data = &arlan_drive_info, |
1098 | .maxlen = ARLAN_STR_SIZE, | 1098 | .maxlen = ARLAN_STR_SIZE, |
1099 | .mode = 0400, | 1099 | .mode = 0400, |
1100 | .proc_handler = &arlan_sysctl_info18, | 1100 | .proc_handler = arlan_sysctl_info18, |
1101 | }, | 1101 | }, |
1102 | { | 1102 | { |
1103 | .procname = "arlan3-ring", | 1103 | .procname = "arlan3-ring", |
1104 | .data = &arlan_drive_info, | 1104 | .data = &arlan_drive_info, |
1105 | .maxlen = ARLAN_STR_SIZE, | 1105 | .maxlen = ARLAN_STR_SIZE, |
1106 | .mode = 0400, | 1106 | .mode = 0400, |
1107 | .proc_handler = &arlan_sysctl_info161719, | 1107 | .proc_handler = arlan_sysctl_info161719, |
1108 | }, | 1108 | }, |
1109 | { | 1109 | { |
1110 | .procname = "arlan3-shm-cpy", | 1110 | .procname = "arlan3-shm-cpy", |
1111 | .data = &arlan_drive_info, | 1111 | .data = &arlan_drive_info, |
1112 | .maxlen = ARLAN_STR_SIZE, | 1112 | .maxlen = ARLAN_STR_SIZE, |
1113 | .mode = 0400, | 1113 | .mode = 0400, |
1114 | .proc_handler = &arlan_sysctl_info, | 1114 | .proc_handler = arlan_sysctl_info, |
1115 | }, | 1115 | }, |
1116 | #endif | 1116 | #endif |
1117 | { | 1117 | { |
@@ -1119,14 +1119,14 @@ static ctl_table arlan_conf_table3[] = | |||
1119 | .data = &conf_reset_result, | 1119 | .data = &conf_reset_result, |
1120 | .maxlen = 100, | 1120 | .maxlen = 100, |
1121 | .mode = 0400, | 1121 | .mode = 0400, |
1122 | .proc_handler = &arlan_configure, | 1122 | .proc_handler = arlan_configure, |
1123 | }, | 1123 | }, |
1124 | { | 1124 | { |
1125 | .procname = "reset3", | 1125 | .procname = "reset3", |
1126 | .data = &conf_reset_result, | 1126 | .data = &conf_reset_result, |
1127 | .maxlen = 100, | 1127 | .maxlen = 100, |
1128 | .mode = 0400, | 1128 | .mode = 0400, |
1129 | .proc_handler = &arlan_sysctl_reset, | 1129 | .proc_handler = arlan_sysctl_reset, |
1130 | }, | 1130 | }, |
1131 | { } | 1131 | { } |
1132 | }; | 1132 | }; |