Changeset 5040ee5 in rtems-libbsd


Ignore:
Timestamp:
May 12, 2017, 12:16:24 PM (2 years ago)
Author:
Kevin Kirspel <kevin-kirspel@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
534017c
Parents:
746d74b
git-author:
Kevin Kirspel <kevin-kirspel@…> (05/12/17 12:16:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/12/17 12:18:38)
Message:

Update USB Serial Driver for use with RTEMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/usb/serial/usb_serial.c

    r746d74b r5040ee5  
    8383#include <sys/cons.h>
    8484
     85#ifndef __rtems__
    8586#include <dev/uart/uart_ppstypes.h>
     87#endif /* __rtems__ */
    8688
    8789#include <dev/usb/usb.h>
     
    100102static SYSCTL_NODE(_hw_usb, OID_AUTO, ucom, CTLFLAG_RW, 0, "USB ucom");
    101103
     104#ifndef __rtems__
    102105static int ucom_pps_mode;
    103106
     
    105108    &ucom_pps_mode, 0,
    106109    "pulse capture mode: 0/1/2=disabled/CTS/DCD; add 0x10 to invert");
     110#endif /* __rtems__ */
    107111
    108112#ifdef USB_DEBUG
     
    421425        sc->sc_tty = tp;
    422426
     427#ifndef __rtems__
    423428        sc->sc_pps.ppscap = PPS_CAPTUREBOTH;
    424429        sc->sc_pps.driver_abi = PPS_ABI_VERSION;
    425430        sc->sc_pps.driver_mtx = sc->sc_mtx;
    426431        pps_init_abi(&sc->sc_pps);
     432#endif /* __rtems__ */
    427433
    428434        DPRINTF("ttycreate: %s\n", buf);
     
    875881                        error = ENOIOCTL;
    876882                }
     883#ifndef __rtems__
    877884                if (error == ENOIOCTL)
    878885                        error = pps_ioctl(cmd, data, &sc->sc_pps);
     886#endif /* __rtems__ */
    879887                break;
    880888        }
     
    10831091        uint8_t msr_delta;
    10841092        uint8_t lsr_delta;
     1093#ifndef __rtems__
    10851094        uint8_t pps_signal;
     1095#endif /* __rtems__ */
    10861096
    10871097        tp = sc->sc_tty;
     
    11121122        sc->sc_lsr = new_lsr;
    11131123
     1124#ifndef __rtems__
    11141125        /*
    11151126         * Time pulse counting support.
     
    11361147                    PPS_CAPTURECLEAR);
    11371148        }
     1149#endif /* __rtems__ */
    11381150
    11391151        if (msr_delta & SER_DCD) {
Note: See TracChangeset for help on using the changeset viewer.