Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7030bc9 in mainline


Ignore:
Timestamp:
2012-07-18T21:21:57Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
6de2d766, 8013637, ae49252
Parents:
ae3ff9f5
Message:

Check that the CR_TXP bit in ne2k's CR register is zero after a software
reset. This makes it somewhat harder to successfully probe a
non-existent ne2k device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ne2k/dp8390.c

    rae3ff9f5 r7030bc9  
    201201        /* Check if the DP8390 is really there */
    202202        uint8_t val = pio_read_8(ne2k->port + DP_CR);
    203         if ((val & (CR_STP | CR_DM_ABORT)) != (CR_STP | CR_DM_ABORT))
     203        if ((val & (CR_STP | CR_TXP | CR_DM_ABORT)) != (CR_STP | CR_DM_ABORT))
    204204                return EXDEV;
    205205       
Note: See TracChangeset for help on using the changeset viewer.