Ticket #353: i386-pc386bsp-misc.diff

File i386-pc386bsp-misc.diff, 1.1 KB (added by strauman, on Dec 3, 2006 at 1:31:12 PM)

i386-pc386bsp-misc.diff

Line 
1Patch against RTEMS-ss-20030128
2Author: Till Straumann <strauman@slac.stanford.edu>
3
42003/2/11
5
6This patch addresses the following issues:
7  - let the application override the network driver / attach routine
8
9Index: c/src/lib/libbsp/i386/pc386/include/bsp.h
10===================================================================
11RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/c/src/lib/libbsp/i386/pc386/include/bsp.h,v
12retrieving revision 1.1.1.3
13diff -c -r1.1.1.3 bsp.h
14*** c/src/lib/libbsp/i386/pc386/include/bsp.h   29 Jan 2003 22:51:01 -0000      1.1.1.3
15--- c/src/lib/libbsp/i386/pc386/include/bsp.h   5 Feb 2003 05:56:56 -0000
16***************
17*** 87,94 ****
18--- 87,99 ----
19  #define BSP_DEC21140_NETWORK_DRIVER_NAME    "dc1"
20  #define BSP_DEC21140_NETWORK_DRIVER_ATTACH  rtems_dec21140_driver_attach
21 
22+ #ifndef RTEMS_BSP_NETWORK_DRIVER_NAME
23  #define RTEMS_BSP_NETWORK_DRIVER_NAME   BSP_DEC21140_NETWORK_DRIVER_NAME
24+ #endif
25+
26+ #ifndef RTEMS_BSP_NETWORK_DRIVER_ATTACH
27  #define RTEMS_BSP_NETWORK_DRIVER_ATTACH BSP_DEC21140_NETWORK_DRIVER_ATTACH
28+ #endif
29 
30  /*-------------------------------------------------------------------------+
31  | Constants