[smscusb] Abstract out common SMSC USB device functionality

The smsc75xx and smsc95xx drivers include a substantial amount of
identical functionality, varying only in the base address of register
sets.  Abstract out this common functionality to allow code to be
shared between the drivers.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2017-07-06 16:58:22 +01:00
parent 1015a350f7
commit 5a7558447a
3 changed files with 826 additions and 0 deletions

View File

@@ -200,6 +200,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define ERRFILE_sfc_hunt ( ERRFILE_DRIVER | 0x00c40000 )
#define ERRFILE_efx_hunt ( ERRFILE_DRIVER | 0x00c50000 )
#define ERRFILE_exanic ( ERRFILE_DRIVER | 0x00c60000 )
#define ERRFILE_smscusb ( ERRFILE_DRIVER | 0x00c70000 )
#define ERRFILE_aoe ( ERRFILE_NET | 0x00000000 )
#define ERRFILE_arp ( ERRFILE_NET | 0x00010000 )