Changeset 3393f6dd in rtems
- Timestamp:
- Aug 2, 2000, 9:08:44 PM (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 0e08ff00
- Parents:
- 409a221
- Location:
- c/src/lib/libbsp/m68k/gen68360
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/gen68360/include/bsp.h
r409a221 r3393f6dd 49 49 */ 50 50 struct rtems_bsdnet_ifconfig; 51 extern int rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config );51 extern int rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching); 52 52 #define RTEMS_BSP_NETWORK_DRIVER_NAME "scc1" 53 53 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_scc1_driver_attach -
c/src/lib/libbsp/m68k/gen68360/network/network.c
r409a221 r3393f6dd 943 943 */ 944 944 int 945 rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config )945 rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching) 946 946 { 947 947 struct scc_softc *sc; … … 951 951 char *unitName; 952 952 953 /* 954 * Make sure we're really being attached 955 */ 956 if (!attaching) { 957 printf ("SCC1 driver can not be detached.\n"); 958 return 0; 959 } 960 953 961 /* 954 962 * Parse driver name … … 1050 1058 ether_ifattach (ifp); 1051 1059 return 1; 1052 } ;1060 }
Note: See TracChangeset
for help on using the changeset viewer.