Project

General

Profile

Bug #690 ยป umct.patch

josepht, 06/09/2007 02:15 PM

View differences:

sys/dev/usbmisc/umct/umct.c 9 Jun 2007 13:56:34 -0000
#define UMCT_SET_LCR_SIZE 1
#define UMCT_SET_MCR 10 /* Set Modem Control Register */
#define UMCT_SET_MCR_SIZE 1
#define UMCT_SET_UNKNOWN1 11
#define UMCT_SET_UNKNOWN1_SIZE 1
#define UMCT_SET_UNKNOWN2 12
#define UMCT_SET_UNKNOWN2_SIZE 1
#define UMCT_INTR_INTERVAL 100
#define UMCT_IFACE_INDEX 0
......
sc = addr;
value = umct_calc_baud(ti->c_ospeed);
umct_request(sc, UMCT_SET_BAUD, UMCT_SET_BAUD_SIZE, value);
umct_request(sc, UMCT_SET_UNKNOWN1, UMCT_SET_UNKNOWN1_SIZE, 0);
umct_request(sc, UMCT_SET_UNKNOWN2, UMCT_SET_UNKNOWN2_SIZE, 0);
value = sc->sc_lcr & 0x40;
    (1-1/1)