Main Page | Data Structures | File List | Data Fields | Globals

text_to_int Struct Reference

#include <serial_io.h>


Detailed Description

element in array that supports integer to string and string to integer lookup

Several driver components need to associate a string name and a value generally they define an array of these and then perform a linear search. Used by the serial routing component in its /proc routing interface driver need to associate stings such as CCTALK_A and TTL_B with the bitpattern that make the routing happen. The /proc entries can be read to the system needs a reverse lookup as well


Data Fields

const char * name
unsigned long value


Field Documentation

const char* text_to_int::name
 

character string

unsigned long text_to_int::value
 

arbitary integer value most likely a register bit pattern


The documentation for this struct was generated from the following file:
Generated on Fri Jan 28 12:37:53 2005 for Axis Kernel Driver by doxygen 1.3.6