mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
26 lines
853 B
C
26 lines
853 B
C
#ifndef DEBUG_H
|
|
#define DEBUG_H
|
|
|
|
#include "uhci.h"
|
|
|
|
#ifndef KERNEL
|
|
#include <printk.h>
|
|
#define DPRINTF( x...) printk(x)
|
|
#else
|
|
#define DPRINTF( x...) printk("<1>" x)
|
|
#endif
|
|
|
|
void dump_hex(uchar *data, int len, char *prefix);
|
|
void dump_link( link_pointer_t *link, char *prefix);
|
|
void dump_td( td_t *td, char *prefix);
|
|
void dump_queue_head( queue_head_t *qh, char *prefix);
|
|
void dump_transaction( transaction_t *trans, char *prefix);
|
|
void dump_usbdev( usbdev_t *dev, char *prefix);
|
|
//void dump_all_usbdev(char *prefix);
|
|
void dump_device_descriptor( device_descriptor_t *des, char *prefix);
|
|
void dump_interface_descriptor( interface_descriptor_t *iface, char *prefix);
|
|
void dump_endpoint_descriptor( endpoint_descriptor_t *ep, char *prefix);
|
|
void dump_config_descriptor( uchar *des, char *prefix);
|
|
void dump_ctrlmsg( ctrl_msg_t *msg, char *prefix);
|
|
|
|
#endif
|