FreeBSD/sys/dev/etherswitch/arswitch/arswitch_7240.c
/*
 * The AR7240 probes the same as the AR8216.
 *
 * However, the support is slightly different.
 *
 * So instead of checking the PHY revision or mask register contents,
 * we simply fall back to a hint check.
 */
The AR7240 probes the same as the AR8216.
However, the support is slightly different.

So instead of checking the PHY revision or mask register contents,
we simply fall back to a hint check.
The AR7240 probes the same as the AR8216 . However the support is slightly different . So instead of checking the PHY revision or mask register contents we simply fall back to a hint check .
int
ar7240_probe(device_t dev)
{
	int is_7240 = 0;
	if (resource_int_value(device_get_name(dev), device_get_unit(dev),
	    "is_7240", &is_7240) != 0)
		return (ENXIO);
	if (is_7240 == 0)
		return (ENXIO);
	return (0);
}
int ar7240_probe ( device_t dev ) { int is_7240 = 0 ; if ( resource_int_value ( device_get_name ( dev ) , device_get_unit ( dev ) , " " , & is_7240 ) != 0 ) return ( ENXIO ) ; if ( is_7240 == 0 ) return ( ENXIO ) ; return ( 0 ) ; }
The AR7240 probes the same as the AR8216.
The AR7240 probes the same as the AR8216 .