diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-09 06:49:28 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-09 06:49:28 +0000 |
commit | 8c1bae59f57cd2cffe13234aee94c2b7aa08e8dd (patch) | |
tree | 13c5244859d81bdecf92fa67c8103fef31335ff8 /openpicc/application/ssc_picc.h | |
parent | ceb643380b02d0d8289e3ad75a495123414ace8c (diff) |
Clean up SSC performance metric reporting
git-svn-id: https://svn.openpcd.org:2342/trunk@382 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc_picc.h')
-rw-r--r-- | openpicc/application/ssc_picc.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/openpicc/application/ssc_picc.h b/openpicc/application/ssc_picc.h index a90f13e..df6da36 100644 --- a/openpicc/application/ssc_picc.h +++ b/openpicc/application/ssc_picc.h @@ -38,9 +38,15 @@ typedef void (*ssc_irq_ext_t)(u_int32_t ssc_sr, enum ssc_mode ssc_mode, u_int8_t * than acceptable for the synchronous responses (around 87us).*/ extern ssc_irq_ext_t ssc_set_irq_extension(ssc_irq_ext_t ext_handler); -extern int ssc_get_overflows(void); -extern int ssc_count_free(void); -extern int ssc_get_late_frames(void); +/* These are various SSC performance metrics that can be queried */ +typedef enum { + OVERFLOWS, /* Overflows (e.g. no free buffer when reloading DMA controller) */ + BUFFER_ERRORS, /* Internal buffer management errors */ + FREE_BUFFERS, /* Free RX buffers */ + LATE_FRAMES, /* Frames that were not ready to be sent when the FDT passed; e.g. sent too late */ + SSC_ERRORS, /* General error count, e.g. OVERFLOWS + BUFFER_ERRORS */ +} ssc_metric; +extern int ssc_get_metric(ssc_metric metric); #define SSC_DMA_BUFFER_SIZE 2048 #define SSC_DMA_BUFFER_COUNT 4 |