if_age.c (317cec3c43aa82a60e43427c6f1382bdd9e6810f) if_age.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e)
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@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

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

318{
319 struct age_dev *sp;
320 int i;
321 uint16_t vendor, devid;
322
323 vendor = pci_get_vendor(dev);
324 devid = pci_get_device(dev);
325 sp = age_devs;
1/*-
2 * Copyright (c) 2008, Pyun YongHyeon <yongari@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

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

318{
319 struct age_dev *sp;
320 int i;
321 uint16_t vendor, devid;
322
323 vendor = pci_get_vendor(dev);
324 devid = pci_get_device(dev);
325 sp = age_devs;
326 for (i = 0; i < sizeof(age_devs) / sizeof(age_devs[0]);
327 i++, sp++) {
326 for (i = 0; i < nitems(age_devs); i++, sp++) {
328 if (vendor == sp->age_vendorid &&
329 devid == sp->age_deviceid) {
330 device_set_desc(dev, sp->age_name);
331 return (BUS_PROBE_DEFAULT);
332 }
333 }
334
335 return (ENXIO);

--- 3009 unchanged lines hidden ---
327 if (vendor == sp->age_vendorid &&
328 devid == sp->age_deviceid) {
329 device_set_desc(dev, sp->age_name);
330 return (BUS_PROBE_DEFAULT);
331 }
332 }
333
334 return (ENXIO);

--- 3009 unchanged lines hidden ---