Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nick-nhusb]: src/sys/dev/usb Add some changes to ehci_sitd_t based on th...



details:   https://anonhg.NetBSD.org/src/rev/9c63d58b621c
branches:  nick-nhusb
changeset: 334397:9c63d58b621c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Feb 16 07:16:47 2016 +0000

description:
Add some changes to ehci_sitd_t based on the RiscOS code sent to me by
Colin Granvillein private email

diffstat:

 sys/dev/usb/ehcireg.h |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r d199f296681a -r 9c63d58b621c sys/dev/usb/ehcireg.h
--- a/sys/dev/usb/ehcireg.h     Mon Feb 15 17:00:27 2016 +0000
+++ b/sys/dev/usb/ehcireg.h     Tue Feb 16 07:16:47 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehcireg.h,v 1.34.14.10 2015/09/22 12:06:01 skrll Exp $ */
+/*     $NetBSD: ehcireg.h,v 1.34.14.11 2016/02/16 07:16:47 skrll Exp $ */
 
 /*
  * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -281,13 +281,17 @@
 #define EHCI_SITD_XACTERR      0x00000008
 #define EHCI_SITD_MISS         0x00000004
 #define EHCI_SITD_SPLITXSTATE  0x00000002
-       volatile uint32_t       sitd_buffer[2];
+
+#define EHCI_SITD_BUFFERS      2
+       
+       volatile uint32_t       sitd_buffer[EHCI_SITD_BUFFERS];
 #define EHCI_SITD_SET_BPTR(x)  ((x) & 0xfffff000)
 #define EHCI_SITD_SET_OFFS(x)  ((x) & 0xfff)
 #define EHCI_SITD_TP_MASK      __BITS(4,3)
 #define EHCI_SITD_TCOUNT_MASK  __BITS(2,0)
 
-       volatile uint32_t       sitd_back;
+       volatile ehci_link_t    sitd_back;
+       volatile uint32_t       sitd_buffer_hi[EHCI_SITD_BUFFERS];
 } ehci_sitd_t;
 #define EHCI_SITD_ALIGN 32
 



Home | Main Index | Thread Index | Old Index