summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-08 16:38:17 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-08 16:38:17 +0000
commit52985be4417d97beb2bbd95bdd2dd53be516ceda (patch)
tree171dd0fea52c8dca20a0b792917dbf447c8b6bf0
parent413ebaabc799592f0bd0a7feaaf86c1e258551e0 (diff)
add some more state and PIO constants
git-svn-id: https://svn.openpcd.org:2342/trunk@80 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/firmware/src/openpcd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h
index fa93dce..ce9aac8 100644
--- a/openpcd/firmware/src/openpcd.h
+++ b/openpcd/firmware/src/openpcd.h
@@ -14,12 +14,16 @@
#define OPENPCD_IRQ_RC632 AT91C_ID_IRQ1
+#define OPENPCD_PIO_CARRIER_DIV AT91C_PIO_PA1
#define OPENPCD_PIO_MFIN AT91C_PIO_PA17
#define OPENPCD_PIO_MFOUT AT91C_PIO_PA18
+#define OPENPCD_PIO_SSP_CKIN AT91C_PIO_PA19
#define OPENPCD_PIO_RC632_RESET AT91C_PIO_PA29
#define OPENPCD_PIO_TRIGGER AT91C_PIO_PA31
+#define OPENPCD_PIO_CARRIER AT91C_PIO_PA28
#define OPENPCD_IRQ_PRIO_SPI AT91C_AIC_PRIOR_HIGHEST
+#define OPENPCD_IRQ_PRIO_SSC (AT91C_AIC_PRIOR_HIGHEST-1)
#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+1)
#define OPENPCD_IRQ_PRIO_RC632 AT91C_AIC_PRIOR_LOWEST
@@ -57,6 +61,8 @@ struct req_ctx {
#define RCTX_STATE_UDP_EP3_PENDING 0x12
#define RCTX_STATE_UDP_EP3_BUSY 0x13
+#define RCTX_STATE_SSC_RX_BUSY 0x20
+
#define NUM_REQ_CTX 8
extern struct req_ctx *req_ctx_find_get(unsigned long old_state, unsigned long new_state);
extern struct req_ctx *req_ctx_find_busy(void);
personal git repositories of Harald Welte. Your mileage may vary