summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/openpcd.h
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 01:08:38 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-09 01:08:38 +0000
commit520784c7ba6a8325e413a293ab11840d982ba87d (patch)
tree44ee93d44102d47014c6ff696ebc93e8de402e01 /openpcd/firmware/src/openpcd.h
parentb0317c72667378333e1008c49559e974f3e7c15d (diff)
- major reorganization, split source tree in
- os: core "operating system" - pcd: PCD (reader) side - picc: PICC (transponder) side - rewrite linker script almost from scratch (for correct DFU operation) git-svn-id: https://svn.openpcd.org:2342/trunk@142 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/openpcd.h')
-rw-r--r--openpcd/firmware/src/openpcd.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/openpcd/firmware/src/openpcd.h b/openpcd/firmware/src/openpcd.h
index ec577d3..aa47fa4 100644
--- a/openpcd/firmware/src/openpcd.h
+++ b/openpcd/firmware/src/openpcd.h
@@ -49,49 +49,6 @@
#define OPENPCD_IRQ_PRIO_UDP (AT91C_AIC_PRIOR_LOWEST+1)
#define OPENPCD_IRQ_PRIO_RC632 AT91C_AIC_PRIOR_LOWEST
-#define MAX_HDRSIZE sizeof(struct openpcd_hdr)
-#define MAX_REQSIZE (64-MAX_HDRSIZE)
-
-#define req_buf_payload(x) (x->data[x->hdr_len])
-#define req_buf_hdr(x) (x->data[0])
-
-#include <sys/types.h>
-
-struct req_buf {
- u_int16_t hdr_len;
- u_int16_t tot_len;
- u_int8_t data[64];
-};
-
-struct req_ctx {
- u_int16_t seq; /* request sequence number */
- u_int16_t flags;
- volatile u_int32_t state;
- struct req_buf rx;
- struct req_buf tx;
-};
-
-#define RCTX_STATE_FREE 0x00
-#define RCTX_STATE_UDP_RCV_BUSY 0x01
-#define RCTX_STATE_UDP_RCV_DONE 0x02
-#define RCTX_STATE_MAIN_PROCESSING 0x03
-#define RCTX_STATE_RC632IRQ_BUSY 0x04
-
-#define RCTX_STATE_UDP_EP2_PENDING 0x10
-#define RCTX_STATE_UDP_EP2_BUSY 0x11
-
-#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);
-extern void req_ctx_set_state(struct req_ctx *ctx, unsigned long new_state);
-extern void req_ctx_put(struct req_ctx *ctx);
-extern u_int8_t req_ctx_num(struct req_ctx *ctx);
-
extern void _init_func(void);
extern void _main_func(void);
personal git repositories of Harald Welte. Your mileage may vary