if_jme.c (317cec3c43aa82a60e43427c6f1382bdd9e6810f) | if_jme.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 --- 323 unchanged lines hidden (view full) --- 332{ 333 struct jme_dev *sp; 334 int i; 335 uint16_t vendor, devid; 336 337 vendor = pci_get_vendor(dev); 338 devid = pci_get_device(dev); 339 sp = jme_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 --- 323 unchanged lines hidden (view full) --- 332{ 333 struct jme_dev *sp; 334 int i; 335 uint16_t vendor, devid; 336 337 vendor = pci_get_vendor(dev); 338 devid = pci_get_device(dev); 339 sp = jme_devs; |
340 for (i = 0; i < sizeof(jme_devs) / sizeof(jme_devs[0]); 341 i++, sp++) { | 340 for (i = 0; i < nitems(jme_devs); i++, sp++) { |
342 if (vendor == sp->jme_vendorid && 343 devid == sp->jme_deviceid) { 344 device_set_desc(dev, sp->jme_name); 345 return (BUS_PROBE_DEFAULT); 346 } 347 } 348 349 return (ENXIO); --- 3108 unchanged lines hidden --- | 341 if (vendor == sp->jme_vendorid && 342 devid == sp->jme_deviceid) { 343 device_set_desc(dev, sp->jme_name); 344 return (BUS_PROBE_DEFAULT); 345 } 346 } 347 348 return (ENXIO); --- 3108 unchanged lines hidden --- |