bitq_interface_t -> struct biq_interface
Remove useless typedef and redundant suffix.
This commit is contained in:
parent
ff3150922b
commit
c20b779b89
|
@ -25,7 +25,7 @@
|
||||||
#include "interface.h"
|
#include "interface.h"
|
||||||
|
|
||||||
|
|
||||||
bitq_interface_t* bitq_interface; /* low level bit queue interface */
|
struct bitq_interface* bitq_interface; /* low level bit queue interface */
|
||||||
|
|
||||||
/* state of input queue */
|
/* state of input queue */
|
||||||
struct bitq_state {
|
struct bitq_state {
|
||||||
|
|
|
@ -22,10 +22,8 @@
|
||||||
|
|
||||||
#include "commands.h"
|
#include "commands.h"
|
||||||
|
|
||||||
typedef struct bitq_interface_s
|
struct bitq_interface {
|
||||||
{
|
// function to enqueueing low level IO requests
|
||||||
/* functions enqueueing low level IO requests
|
|
||||||
*/
|
|
||||||
int (*out)(int tms, int tdi, int tdo_req);
|
int (*out)(int tms, int tdi, int tdo_req);
|
||||||
int (*flush)(void);
|
int (*flush)(void);
|
||||||
|
|
||||||
|
@ -37,9 +35,9 @@ typedef struct bitq_interface_s
|
||||||
*/
|
*/
|
||||||
int (*in_rdy)(void);
|
int (*in_rdy)(void);
|
||||||
int (*in)(void);
|
int (*in)(void);
|
||||||
} bitq_interface_t;
|
};
|
||||||
|
|
||||||
extern bitq_interface_t *bitq_interface;
|
extern struct bitq_interface *bitq_interface;
|
||||||
|
|
||||||
int bitq_execute_queue(void);
|
int bitq_execute_queue(void);
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ static int presto_bitq_reset(int trst, int srst);
|
||||||
static int presto_bitq_in_rdy(void);
|
static int presto_bitq_in_rdy(void);
|
||||||
static int presto_bitq_in(void);
|
static int presto_bitq_in(void);
|
||||||
|
|
||||||
static bitq_interface_t presto_bitq =
|
static struct bitq_interface presto_bitq =
|
||||||
{
|
{
|
||||||
.out = presto_bitq_out,
|
.out = presto_bitq_out,
|
||||||
.flush = presto_bitq_flush,
|
.flush = presto_bitq_flush,
|
||||||
|
|
Loading…
Reference in New Issue