if_bwn.c (d60840138f6292c1ceeb177ebe797eca0b2749da) if_bwn.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e)
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 892 unchanged lines hidden (view full) ---

901 SIBA_DEV(BROADCOM, 80211, 16, "Revision 16")
902};
903
904static int
905bwn_probe(device_t dev)
906{
907 int i;
908
1/*-
2 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 892 unchanged lines hidden (view full) ---

901 SIBA_DEV(BROADCOM, 80211, 16, "Revision 16")
902};
903
904static int
905bwn_probe(device_t dev)
906{
907 int i;
908
909 for (i = 0; i < sizeof(bwn_devs) / sizeof(bwn_devs[0]); i++) {
909 for (i = 0; i < nitems(bwn_devs); i++) {
910 if (siba_get_vendor(dev) == bwn_devs[i].sd_vendor &&
911 siba_get_device(dev) == bwn_devs[i].sd_device &&
912 siba_get_revid(dev) == bwn_devs[i].sd_rev)
913 return (BUS_PROBE_DEFAULT);
914 }
915
916 return (ENXIO);
917}

--- 13170 unchanged lines hidden ---
910 if (siba_get_vendor(dev) == bwn_devs[i].sd_vendor &&
911 siba_get_device(dev) == bwn_devs[i].sd_device &&
912 siba_get_revid(dev) == bwn_devs[i].sd_rev)
913 return (BUS_PROBE_DEFAULT);
914 }
915
916 return (ENXIO);
917}

--- 13170 unchanged lines hidden ---