icE1usb: update ice1usb_proto.h to current master
Copy from firmware source code repo at https://git.osmocom.org/osmo-e1-hardware/tree/firmware/ice40-riscv/icE1usb/ice1usb_proto.h as of d376b2e852fbf26a60ac4d6f66e54bb85f0b7204
This commit is contained in:
parent
2985596a8a
commit
9e20495082
|
@ -451,7 +451,7 @@ static void ice1usb_irq_complete(struct urb *urb)
|
||||||
const struct ice1usb_irq_err *err;
|
const struct ice1usb_irq_err *err;
|
||||||
irq = (struct ice1usb_irq *) urb->transfer_buffer;
|
irq = (struct ice1usb_irq *) urb->transfer_buffer;
|
||||||
switch (irq->type) {
|
switch (irq->type) {
|
||||||
case ICE1USB_IRQQ_T_ERRCNT:
|
case ICE1USB_IRQ_T_ERRCNT:
|
||||||
err = &irq->u.errors;
|
err = &irq->u.errors;
|
||||||
ieu_dbg(ieu, "IRQ: crc=%u, align=%u, ovfl=%u, unfl=%u, flags=%x",
|
ieu_dbg(ieu, "IRQ: crc=%u, align=%u, ovfl=%u, unfl=%u, flags=%x",
|
||||||
le16_to_cpu(err->crc), le16_to_cpu(err->align),
|
le16_to_cpu(err->crc), le16_to_cpu(err->align),
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
#pragma once
|
/*
|
||||||
|
* ice1usb_proto.h
|
||||||
|
*
|
||||||
|
* Copyright (C) 2020 Harald Welte <laforge@osmocom.org>
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*
|
||||||
|
* Header file describing the USB protocol between the icE1usb firmware and the host
|
||||||
|
* software (currently really only osmo-e1d)
|
||||||
|
*/
|
||||||
|
|
||||||
/* Header file describing the USB protocol between the icE1usb firmware and the host
|
#pragma once
|
||||||
* software (currently really only osmo-e1d) */
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Control Endpoint / Device Requests
|
* Control Endpoint / Device Requests
|
||||||
|
@ -75,12 +82,12 @@ struct ice1usb_rx_config {
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
enum ice1usb_irq_type {
|
enum ice1usb_irq_type {
|
||||||
ICE1USB_IRQQ_T_ERRCNT = 1,
|
ICE1USB_IRQ_T_ERRCNT = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ensue ro keep those in sync with e1.h */
|
/* Ensue ro keep those in sync with e1.h */
|
||||||
#define ICE1USB_ERR_F_ALIGN_ERR 0x01
|
#define ICE1USB_ERR_F_ALIGN_ERR 0x01
|
||||||
#define ICE1USB_ERR_F_TICK_ERR 0x02
|
#define ICE1USB_ERR_F_LOS 0x02
|
||||||
|
|
||||||
struct ice1usb_irq_err {
|
struct ice1usb_irq_err {
|
||||||
/* 16-bit little-endian counters */
|
/* 16-bit little-endian counters */
|
||||||
|
|
Loading…
Reference in New Issue