|
@@ -172,8 +172,8 @@ static inline void isapnp_reset_csn ( void ) {
|
172
|
172
|
* Place a specified card into the Config state.
|
173
|
173
|
*
|
174
|
174
|
* @v csn Card Select Number
|
175
|
|
- * @ret None
|
176
|
|
- * @err None
|
|
175
|
+ * @ret None -
|
|
176
|
+ * @err None -
|
177
|
177
|
*
|
178
|
178
|
* Only cards currently in the Sleep, Isolation, or Config states will
|
179
|
179
|
* respond to this command. The card that has the specified CSN will
|
|
@@ -196,8 +196,8 @@ static inline uint8_t isapnp_read_status ( void ) {
|
196
|
196
|
* Assign a Card Select Number to a card, and enter the Config state.
|
197
|
197
|
*
|
198
|
198
|
* @v csn Card Select Number
|
199
|
|
- * @ret None
|
200
|
|
- * @err None
|
|
199
|
+ * @ret None -
|
|
200
|
+ * @err None -
|
201
|
201
|
*
|
202
|
202
|
* Only cards in the Isolation state will respond to this command.
|
203
|
203
|
* The isolation protocol is designed so that only one card will
|
|
@@ -241,7 +241,7 @@ static void isapnp_delay ( void ) {
|
241
|
241
|
* @v lfsr Current value of the LFSR
|
242
|
242
|
* @v input_bit Current input bit to the LFSR
|
243
|
243
|
* @ret lfsr Next value of the LFSR
|
244
|
|
- * @err None
|
|
244
|
+ * @err None -
|
245
|
245
|
*
|
246
|
246
|
* This routine implements the linear feedback shift register as
|
247
|
247
|
* described in Appendix B of the PnP ISA spec. The hardware
|
|
@@ -286,7 +286,7 @@ static void isapnp_send_key ( void ) {
|
286
|
286
|
*
|
287
|
287
|
* @v identifier ISAPnP identifier
|
288
|
288
|
* @ret checksum Expected checksum value
|
289
|
|
- * @err None
|
|
289
|
+ * @err None -
|
290
|
290
|
*
|
291
|
291
|
*/
|
292
|
292
|
static uint8_t isapnp_checksum ( struct isapnp_identifier *identifier ) {
|
|
@@ -329,8 +329,8 @@ static inline uint8_t isapnp_peek_byte ( void ) {
|
329
|
329
|
*
|
330
|
330
|
* @v buf Buffer in which to store data, or NULL
|
331
|
331
|
* @v bytes Number of bytes to read
|
332
|
|
- * @ret None
|
333
|
|
- * @err None
|
|
332
|
+ * @ret None -
|
|
333
|
+ * @err None -
|
334
|
334
|
*
|
335
|
335
|
* Resource data is read from the current location. If #buf is NULL,
|
336
|
336
|
* the data is discarded.
|
|
@@ -355,7 +355,7 @@ static void isapnp_peek ( uint8_t *buf, size_t bytes ) {
|
355
|
355
|
* @v buf Buffer in which to store the tag's contents
|
356
|
356
|
* @ret True Tag was found
|
357
|
357
|
* @ret False Tag was not found
|
358
|
|
- * @err None
|
|
358
|
+ * @err None -
|
359
|
359
|
*
|
360
|
360
|
* Scan through the resource data until we find a particular tag, and
|
361
|
361
|
* read its contents into a buffer. It is the caller's responsibility
|
|
@@ -396,7 +396,7 @@ static int isapnp_find_tag ( uint8_t wanted_tag, uint8_t *buf ) {
|
396
|
396
|
* @ret \>0 Number of ISAPnP cards found
|
397
|
397
|
* @ret 0 There are no ISAPnP cards in the system
|
398
|
398
|
* @ret \<0 A conflict was detected; try a new read port
|
399
|
|
- * @err None
|
|
399
|
+ * @err None -
|
400
|
400
|
*
|
401
|
401
|
* The state diagram on page 18 (PDF page 24) of the PnP ISA spec
|
402
|
402
|
* gives the best overview of what happens here.
|
|
@@ -550,7 +550,7 @@ static void isapnp_isolate ( void ) {
|
550
|
550
|
* @v bus_loc Bus location
|
551
|
551
|
* @ret True #bus_loc contains a valid ISAPnP location
|
552
|
552
|
* @ret False There are no more valid ISAPnP locations
|
553
|
|
- * @err None
|
|
553
|
+ * @err None -
|
554
|
554
|
*
|
555
|
555
|
* If there are no more valid locations, the #bus_loc structure will
|
556
|
556
|
* be zeroed.
|
|
@@ -578,7 +578,7 @@ static int isapnp_next_location ( struct bus_loc *bus_loc ) {
|
578
|
578
|
* @v bus_loc Bus location as filled in by isapnp_next_location()
|
579
|
579
|
* @ret True A device is present at this location
|
580
|
580
|
* @ret False No device is present at this location
|
581
|
|
- * @err None
|
|
581
|
+ * @err None -
|
582
|
582
|
*
|
583
|
583
|
*/
|
584
|
584
|
static int isapnp_fill_device ( struct bus_dev *bus_dev,
|
|
@@ -677,7 +677,7 @@ static int isapnp_fill_device ( struct bus_dev *bus_dev,
|
677
|
677
|
* @v device_driver Device driver
|
678
|
678
|
* @ret True Driver is capable of driving this device
|
679
|
679
|
* @ret False Driver is not capable of driving this device
|
680
|
|
- * @err None
|
|
680
|
+ * @err None -
|
681
|
681
|
*
|
682
|
682
|
*/
|
683
|
683
|
static int isapnp_check_driver ( struct bus_dev *bus_dev,
|
|
@@ -713,7 +713,7 @@ static int isapnp_check_driver ( struct bus_dev *bus_dev,
|
713
|
713
|
*
|
714
|
714
|
* @v bus_dev Bus device as filled in by isapnp_fill_device()
|
715
|
715
|
* @ret string Printable string describing the device
|
716
|
|
- * @err None
|
|
716
|
+ * @err None -
|
717
|
717
|
*
|
718
|
718
|
* The string returned by isapnp_describe_device() is valid only until
|
719
|
719
|
* the next call to isapnp_describe_device().
|
|
@@ -733,7 +733,7 @@ static char * isapnp_describe_device ( struct bus_dev *bus_dev ) {
|
733
|
733
|
*
|
734
|
734
|
* @v bus_dev Bus device as filled in by isapnp_fill_device()
|
735
|
735
|
* @ret string Printable string naming the device
|
736
|
|
- * @err None
|
|
736
|
+ * @err None -
|
737
|
737
|
*
|
738
|
738
|
* The string returned by isapnp_name_device() is valid only until the
|
739
|
739
|
* next call to isapnp_name_device().
|
|
@@ -763,8 +763,8 @@ struct bus_driver isapnp_driver __bus_driver = {
|
763
|
763
|
*
|
764
|
764
|
* @v isapnp ISAPnP device
|
765
|
765
|
* @v activation True to enable, False to disable the device
|
766
|
|
- * @ret None
|
767
|
|
- * @err None
|
|
766
|
+ * @ret None -
|
|
767
|
+ * @err None -
|
768
|
768
|
*
|
769
|
769
|
* This routine simply activates the device in its current
|
770
|
770
|
* configuration, or deactivates the device. It does not attempt any
|
|
@@ -796,8 +796,8 @@ void isapnp_device_activation ( struct isapnp_device *isapnp,
|
796
|
796
|
*
|
797
|
797
|
* @v nic NIC structure to be filled in
|
798
|
798
|
* @v isapnp ISAPnP device
|
799
|
|
- * @ret None
|
800
|
|
- * @err None
|
|
799
|
+ * @ret None -
|
|
800
|
+ * @err None -
|
801
|
801
|
*
|
802
|
802
|
* This fills in generic NIC parameters (e.g. I/O address and IRQ
|
803
|
803
|
* number) that can be determined directly from the ISAPnP device,
|