ufoma.c (214761) | ufoma.c (214843) |
---|---|
1/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */ 2 3#include <sys/cdefs.h> | 1/* $NetBSD: umodem.c,v 1.45 2002/09/23 05:51:23 simonb Exp $ */ 2 3#include <sys/cdefs.h> |
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ufoma.c 214761 2010-11-03 21:50:49Z n_hibma $"); | 4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/ufoma.c 214843 2010-11-05 19:12:48Z n_hibma $"); |
5#define UFOMA_HANDSFREE 6/*- 7 * Copyright (c) 2005, Takanori Watanabe 8 * Copyright (c) 2003, M. Warner Losh <imp@FreeBSD.org>. 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions --- 432 unchanged lines hidden (view full) --- 445 mtx_unlock(&sc->sc_mtx); 446 447 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 448 &ufoma_callback, &sc->sc_mtx); 449 if (error) { 450 DPRINTF("ucom_attach failed\n"); 451 goto detach; 452 } | 5#define UFOMA_HANDSFREE 6/*- 7 * Copyright (c) 2005, Takanori Watanabe 8 * Copyright (c) 2003, M. Warner Losh <imp@FreeBSD.org>. 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions --- 432 unchanged lines hidden (view full) --- 445 mtx_unlock(&sc->sc_mtx); 446 447 error = ucom_attach(&sc->sc_super_ucom, &sc->sc_ucom, 1, sc, 448 &ufoma_callback, &sc->sc_mtx); 449 if (error) { 450 DPRINTF("ucom_attach failed\n"); 451 goto detach; 452 } |
453 ucom_set_pnpinfo_usb(&sc->sc_super_ucom, dev); 454 |
|
453 /*Sysctls*/ 454 sctx = device_get_sysctl_ctx(dev); 455 soid = device_get_sysctl_tree(dev); 456 457 SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "supportmode", 458 CTLFLAG_RD|CTLTYPE_STRING, sc, 0, ufoma_sysctl_support, 459 "A", "Supporting port role"); 460 --- 793 unchanged lines hidden --- | 455 /*Sysctls*/ 456 sctx = device_get_sysctl_ctx(dev); 457 soid = device_get_sysctl_tree(dev); 458 459 SYSCTL_ADD_PROC(sctx, SYSCTL_CHILDREN(soid), OID_AUTO, "supportmode", 460 CTLFLAG_RD|CTLTYPE_STRING, sc, 0, ufoma_sysctl_support, 461 "A", "Supporting port role"); 462 --- 793 unchanged lines hidden --- |