Changeset 175
- Timestamp:
- Sep 2, 2010, 5:46:54 PM (14 years ago)
- Location:
- freebsd-mos-driver
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mos-driver/Makefile
r172 r175 21 21 .include <bsd.kmod.mk> 22 22 23 ld:24 kldload ./if_mos.ko25 26 uld:27 kldunload if_mos28 29 23 lsmod: 30 24 kldstat -
freebsd-mos-driver/if_mos.c
r174 r175 424 424 uWord val; 425 425 int i,res, locked; 426 DPRINTF("%s enter\n", __func__); 426 427 427 428 USETW(val, 0); … … 457 458 struct mos_softc *sc = device_get_softc(dev); 458 459 int i, locked; 460 DPRINTF("%s enter\n", __func__); 459 461 460 462 locked = mtx_owned(&sc->sc_mtx); … … 487 489 struct mii_data *mii = GET_MII(sc); 488 490 int val, err, locked; 491 DPRINTF("%s enter\n", __func__); 489 492 490 493 locked = mtx_owned(&sc->sc_mtx); … … 575 578 u_int8_t hashtbl[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; 576 579 int allmulti = 0; 580 DPRINTF("%s enter\n", __func__); 577 581 578 582 MOS_LOCK_ASSERT(sc, MA_OWNED); … … 613 617 { 614 618 u_int8_t ctl; 619 DPRINTF("%s enter\n", __func__); 615 620 616 621 ctl = mos_reg_read_1(sc, MOS_CTL); … … 632 637 { 633 638 int i; 639 DPRINTF("%s enter\n", __func__); 634 640 635 641 /* … … 651 657 mos_probe(device_t dev) 652 658 { 653 DPRINTF ("mos: probe\n");659 DPRINTFN(11, "mos: probe\n"); 654 660 struct usb_attach_arg *uaa = device_get_ivars(dev); 655 661 656 662 if (uaa->usb_mode != USB_MODE_HOST) { 657 DPRINTF ("mos: not USB_MODE_HOST\n");663 DPRINTFN(11, "mos: not USB_MODE_HOST\n"); 658 664 return (ENXIO); 659 665 } … … 664 670 665 671 if (uaa->info.bConfigNum != MOS_CONFIG_NO) { 666 DPRINTF ("mos: not MOS_CONFIG_NO %i vs %i\n", uaa->info.bConfigNum , MOS_CONFIG_NO);672 DPRINTFN(11, "mos: not MOS_CONFIG_NO %i vs %i\n", uaa->info.bConfigNum , MOS_CONFIG_NO); 667 673 return (ENXIO); 668 674 } 669 675 if (uaa->info.bIfaceIndex != MOS_IFACE_IDX) { 670 DPRINTF ("mos: not MOS_IFACE_IDX %i vs %i\n", uaa->info.bIfaceIndex, MOS_IFACE_IDX);676 DPRINTFN(11, "mos: not MOS_IFACE_IDX %i vs %i\n", uaa->info.bIfaceIndex, MOS_IFACE_IDX); 671 677 return (ENXIO); 672 678 } 673 679 674 DPRINTF ("mos: probe by generic means\n");680 DPRINTFN(11, "mos: probe by generic means\n"); 675 681 int retval = usbd_lookup_id_by_uaa(mos_devs, sizeof(mos_devs), uaa); 676 DPRINTF ("mos: probe retval: %i (ENXIO:%i)\n", retval, ENXIO);682 DPRINTFN(11, "mos: probe retval: %i (ENXIO:%i)\n", retval, ENXIO); 677 683 return retval; 678 684 } … … 974 980 struct ifnet *ifp = uether_getifp(ue); 975 981 u_int8_t rxmode; 982 DPRINTF("%s enter\n", __func__); 976 983 977 984 MOS_LOCK_ASSERT(sc, MA_OWNED);
Note:
See TracChangeset
for help on using the changeset viewer.