Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
nosy-dump.c File Reference
#include <byteswap.h>
#include <endian.h>
#include <fcntl.h>
#include <linux/firewire-constants.h>
#include <poll.h>
#include <popt.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
#include "list.h"
#include "nosy-dump.h"
#include "nosy-user.h"

Go to the source code of this file.

Data Structures

struct  protocol_decoder
 
struct  packet_info
 
struct  packet_field
 

Macros

#define COMMON_REQUEST_FIELDS
 
#define COMMON_RESPONSE_FIELDS
 
#define byte_index(i)   ((i) ^ 3)
 
#define HIDE_CURSOR   "\033[?25l"
 
#define SHOW_CURSOR   "\033[?25h"
 
#define CLEAR   "\033[H\033[2J"
 

Enumerations

enum  { PACKET_FIELD_DETAIL = 0x01, PACKET_FIELD_DATA_LENGTH = 0x02, PACKET_FIELD_TRANSACTION = 0x04 }
 
enum  { VIEW_TRANSACTION, VIEW_PACKET, VIEW_STATS }
 
enum  { PACKET_RESERVED, PACKET_REQUEST, PACKET_RESPONSE, PACKET_OTHER }
 

Functions

int main (int argc, const char *argv[])
 

Variables

sig_t sys_sigint_handler
 

Macro Definition Documentation

#define byte_index (   i)    ((i) ^ 3)

Definition at line 666 of file nosy-dump.c.

#define CLEAR   "\033[H\033[2J"

Definition at line 833 of file nosy-dump.c.

#define COMMON_REQUEST_FIELDS
Value:
{ "dest", 0, 16, PACKET_FIELD_TRANSACTION }, \
{ "tl", 16, 6 }, \
{ "rt", 22, 2, PACKET_FIELD_DETAIL, retry_names }, \
{ "tcode", 24, 4, PACKET_FIELD_TRANSACTION, tcode_names }, \
{ "pri", 28, 4, PACKET_FIELD_DETAIL }, \
{ "src", 32, 16, PACKET_FIELD_TRANSACTION }, \
{ "offs", 48, 48, PACKET_FIELD_TRANSACTION }

Definition at line 330 of file nosy-dump.c.

#define COMMON_RESPONSE_FIELDS
Value:
{ "dest", 0, 16 }, \
{ "tl", 16, 6 }, \
{ "rt", 22, 2, PACKET_FIELD_DETAIL, retry_names }, \
{ "tcode", 24, 4, 0, tcode_names }, \
{ "pri", 28, 4, PACKET_FIELD_DETAIL }, \
{ "src", 32, 16 }, \
{ "rcode", 48, 4, PACKET_FIELD_TRANSACTION, rcode_names }

Definition at line 339 of file nosy-dump.c.

#define HIDE_CURSOR   "\033[?25l"

Definition at line 831 of file nosy-dump.c.

#define SHOW_CURSOR   "\033[?25h"

Definition at line 832 of file nosy-dump.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
PACKET_FIELD_DETAIL 
PACKET_FIELD_DATA_LENGTH 
PACKET_FIELD_TRANSACTION 

Definition at line 39 of file nosy-dump.c.

anonymous enum
Enumerator:
VIEW_TRANSACTION 
VIEW_PACKET 
VIEW_STATS 

Definition at line 62 of file nosy-dump.c.

anonymous enum
Enumerator:
PACKET_RESERVED 
PACKET_REQUEST 
PACKET_RESPONSE 
PACKET_OTHER 

Definition at line 306 of file nosy-dump.c.

Function Documentation

int main ( int  argc,
const char argv[] 
)

Definition at line 904 of file nosy-dump.c.

Variable Documentation

sig_t sys_sigint_handler

Definition at line 50 of file nosy-dump.c.