mirror of
https://github.com/vivier/EMILE.git
synced 2024-05-31 17:41:33 +00:00
Allow to read driver signature
This commit is contained in:
parent
60ce7c18eb
commit
87b904a4e8
|
@ -40,7 +40,7 @@ SOURCES = emile_block0_write.c emile_checksum.c emile_first_get_param.c \
|
|||
emile_second_get_property.c emile_second_set_property.c \
|
||||
emile_second_remove_property.c emile_second_create_mapfile.c \
|
||||
emile_second_set_param.c emile_second_get_param.c \
|
||||
emile_first_set_param_scsi_extents.c
|
||||
emile_first_set_param_scsi_extents.c emile_map_get_driver_signature.c
|
||||
|
||||
HEADERS = emile.h libemile.h partition.h bootblock.h
|
||||
|
||||
|
|
20
libemile/emile_map_get_driver_signature.c
Normal file
20
libemile/emile_map_get_driver_signature.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "partition.h"
|
||||
#include "libemile.h"
|
||||
#include "emile.h"
|
||||
|
||||
unsigned long emile_map_get_driver_signature(emile_map_t* map)
|
||||
{
|
||||
if (!emile_map_partition_is_valid(map))
|
||||
return 0;
|
||||
|
||||
return read_long((u_int32_t*)map->partition.Pad);
|
||||
}
|
|
@ -139,4 +139,5 @@ extern void emile_second_set_property(char *configuration, char *name, char *pro
|
|||
extern void emile_second_remove_property(char *configuration, char *name);
|
||||
extern int emile_second_set_param(int fd, char *kernel, char *parameters, char *initrd);
|
||||
extern int emile_second_get_param(int fd, char *kernel, char *parameters, char *initrd);
|
||||
extern unsigned long emile_map_get_driver_signature(emile_map_t* map);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user