bitbash.h
Go to the documentation of this file.00001 #ifndef _GPXE_BITBASH_H
00002 #define _GPXE_BITBASH_H
00003
00004
00005
00006
00007
00008
00009
00010 FILE_LICENCE ( GPL2_OR_LATER );
00011
00012 struct bit_basher;
00013
00014
00015 struct bit_basher_operations {
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 void ( * write ) ( struct bit_basher *basher, unsigned int bit_id,
00030 unsigned long data );
00031
00032
00033
00034
00035
00036
00037
00038
00039 int ( * read ) ( struct bit_basher *basher, unsigned int bit_id );
00040 };
00041
00042
00043 struct bit_basher {
00044
00045 struct bit_basher_operations *op;
00046 };
00047
00048 extern void write_bit ( struct bit_basher *basher, unsigned int bit_id,
00049 unsigned long data );
00050 extern int read_bit ( struct bit_basher *basher, unsigned int bit_id );
00051
00052 #endif