@@ -56,136 +56,6 @@ static struct override {
56
56
57
57
#define NO_OVERRIDES ARRAY_SIZE(overrides)
58
58
59
- #ifndef MODULE
60
-
61
- /**
62
- * internal_setup - handle lilo command string override
63
- * @board: BOARD_* identifier for the board
64
- * @str: unused
65
- * @ints: numeric parameters
66
- *
67
- * Do LILO command line initialization of the overrides array. Display
68
- * errors when needed
69
- *
70
- * Locks: none
71
- */
72
-
73
- static void __init internal_setup (int board , char * str , int * ints )
74
- {
75
- static int commandline_current ;
76
- switch (board ) {
77
- case BOARD_NCR5380 :
78
- if (ints [0 ] != 2 && ints [0 ] != 3 ) {
79
- printk (KERN_ERR "generic_NCR5380_setup : usage ncr5380=" STRVAL (NCR5380_map_name ) ",irq,dma\n" );
80
- return ;
81
- }
82
- break ;
83
- case BOARD_NCR53C400 :
84
- if (ints [0 ] != 2 ) {
85
- printk (KERN_ERR "generic_NCR53C400_setup : usage ncr53c400=" STRVAL (NCR5380_map_name ) ",irq\n" );
86
- return ;
87
- }
88
- break ;
89
- case BOARD_NCR53C400A :
90
- if (ints [0 ] != 2 ) {
91
- printk (KERN_ERR "generic_NCR53C400A_setup : usage ncr53c400a=" STRVAL (NCR5380_map_name ) ",irq\n" );
92
- return ;
93
- }
94
- break ;
95
- case BOARD_DTC3181E :
96
- if (ints [0 ] != 2 ) {
97
- printk ("generic_DTC3181E_setup : usage dtc3181e=" STRVAL (NCR5380_map_name ) ",irq\n" );
98
- return ;
99
- }
100
- break ;
101
- }
102
-
103
- if (commandline_current < NO_OVERRIDES ) {
104
- overrides [commandline_current ].NCR5380_map_name = (NCR5380_map_type ) ints [1 ];
105
- overrides [commandline_current ].irq = ints [2 ];
106
- if (ints [0 ] == 3 )
107
- overrides [commandline_current ].dma = ints [3 ];
108
- else
109
- overrides [commandline_current ].dma = DMA_NONE ;
110
- overrides [commandline_current ].board = board ;
111
- ++ commandline_current ;
112
- }
113
- }
114
-
115
-
116
- /**
117
- * do_NCR53C80_setup - set up entry point
118
- * @str: unused
119
- *
120
- * Setup function invoked at boot to parse the ncr5380= command
121
- * line.
122
- */
123
-
124
- static int __init do_NCR5380_setup (char * str )
125
- {
126
- int ints [10 ];
127
-
128
- get_options (str , ARRAY_SIZE (ints ), ints );
129
- internal_setup (BOARD_NCR5380 , str , ints );
130
- return 1 ;
131
- }
132
-
133
- /**
134
- * do_NCR53C400_setup - set up entry point
135
- * @str: unused
136
- * @ints: integer parameters from kernel setup code
137
- *
138
- * Setup function invoked at boot to parse the ncr53c400= command
139
- * line.
140
- */
141
-
142
- static int __init do_NCR53C400_setup (char * str )
143
- {
144
- int ints [10 ];
145
-
146
- get_options (str , ARRAY_SIZE (ints ), ints );
147
- internal_setup (BOARD_NCR53C400 , str , ints );
148
- return 1 ;
149
- }
150
-
151
- /**
152
- * do_NCR53C400A_setup - set up entry point
153
- * @str: unused
154
- * @ints: integer parameters from kernel setup code
155
- *
156
- * Setup function invoked at boot to parse the ncr53c400a= command
157
- * line.
158
- */
159
-
160
- static int __init do_NCR53C400A_setup (char * str )
161
- {
162
- int ints [10 ];
163
-
164
- get_options (str , ARRAY_SIZE (ints ), ints );
165
- internal_setup (BOARD_NCR53C400A , str , ints );
166
- return 1 ;
167
- }
168
-
169
- /**
170
- * do_DTC3181E_setup - set up entry point
171
- * @str: unused
172
- * @ints: integer parameters from kernel setup code
173
- *
174
- * Setup function invoked at boot to parse the dtc3181e= command
175
- * line.
176
- */
177
-
178
- static int __init do_DTC3181E_setup (char * str )
179
- {
180
- int ints [10 ];
181
-
182
- get_options (str , ARRAY_SIZE (ints ), ints );
183
- internal_setup (BOARD_DTC3181E , str , ints );
184
- return 1 ;
185
- }
186
-
187
- #endif
188
-
189
59
#ifndef SCSI_G_NCR5380_MEM
190
60
/*
191
61
* Configure I/O address of 53C400A or DTC436 by writing magic numbers
@@ -741,8 +611,3 @@ static struct isapnp_device_id id_table[] = {
741
611
742
612
MODULE_DEVICE_TABLE (isapnp , id_table );
743
613
#endif
744
-
745
- __setup ("ncr5380=" , do_NCR5380_setup );
746
- __setup ("ncr53c400=" , do_NCR53C400_setup );
747
- __setup ("ncr53c400a=" , do_NCR53C400A_setup );
748
- __setup ("dtc3181e=" , do_DTC3181E_setup );
0 commit comments