summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/chip/sam_udphs.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/sama5/chip/sam_udphs.h')
-rw-r--r--nuttx/arch/arm/src/sama5/chip/sam_udphs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/sama5/chip/sam_udphs.h b/nuttx/arch/arm/src/sama5/chip/sam_udphs.h
index 85e72b300..9e90cc963 100644
--- a/nuttx/arch/arm/src/sama5/chip/sam_udphs.h
+++ b/nuttx/arch/arm/src/sama5/chip/sam_udphs.h
@@ -4,6 +4,9 @@
* Copyright (C) 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
+ * References:
+ * SAMA5D3 Series Data Sheet
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -48,6 +51,10 @@
/********************************************************************************************
* Pre-processor Definitions
********************************************************************************************/
+/* General Definitions **********************************************************************/
+
+#define SAM_UDPHS_NENDPOINTS 15
+#define SAM_UDPHS_NDMACHANNELS 7
/* Register offsets *************************************************************************/
@@ -431,6 +438,21 @@
* Public Types
********************************************************************************************/
+/* This structure defines the UDPHS DMA Transfer Descriptor. Instances of DMA transfer
+ * descriptors must by aligned to 16-byte address boundaries.
+ *
+ * Each value contains the next value of each of three UDPHS DMA registers. The first
+ * register value (UDPHS_DMANXTDSCx) is a link that can be used to chain sequences of
+ * DMA transfers.
+ */
+
+struct udphs_dtd_s
+{
+ uint32_t nxtd; /* Next Descriptor Address Register: UDPHS_DMANXTDSCx */
+ uint32_t addr; /* DMA Channelx Address Register: UDPHS_DMAADDRESSx */
+ uint32_t ctrl; /* DMA Channelx Control Register: UDPHS_DMACONTROLx */
+};
+
/********************************************************************************************
* Public Data
********************************************************************************************/