drivers/poke: Compile as C++; some formatting cleanup.
This commit is contained in:
@@ -4,6 +4,13 @@ SetSubDirSupportedPlatformsBeOSCompatible ;
|
|||||||
|
|
||||||
UsePrivateHeaders drivers ;
|
UsePrivateHeaders drivers ;
|
||||||
|
|
||||||
|
KernelAddon <driver>mem :
|
||||||
|
mem.c
|
||||||
|
;
|
||||||
|
|
||||||
|
KernelAddon <driver>poke :
|
||||||
|
poke.cpp
|
||||||
|
;
|
||||||
|
|
||||||
KernelAddon <driver>config :
|
KernelAddon <driver>config :
|
||||||
config.c
|
config.c
|
||||||
@@ -13,14 +20,6 @@ KernelAddon <driver>kdl :
|
|||||||
kdl.c
|
kdl.c
|
||||||
;
|
;
|
||||||
|
|
||||||
KernelAddon <driver>mem :
|
|
||||||
mem.c
|
|
||||||
;
|
|
||||||
|
|
||||||
KernelAddon <driver>poke :
|
|
||||||
poke.c
|
|
||||||
;
|
|
||||||
|
|
||||||
KernelAddon <driver>test :
|
KernelAddon <driver>test :
|
||||||
test.c
|
test.c
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include "poke.h"
|
#include "poke.h"
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
static status_t poke_open(const char*, uint32, void**);
|
static status_t poke_open(const char*, uint32, void**);
|
||||||
static status_t poke_close(void*);
|
static status_t poke_close(void*);
|
||||||
static status_t poke_free(void*);
|
static status_t poke_free(void*);
|
||||||
@@ -21,7 +19,6 @@ static status_t poke_control(void*, uint32, void*, size_t);
|
|||||||
static status_t poke_read(void*, off_t, void*, size_t*);
|
static status_t poke_read(void*, off_t, void*, size_t*);
|
||||||
static status_t poke_write(void*, off_t, const void*, size_t*);
|
static status_t poke_write(void*, off_t, const void*, size_t*);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
static const char* poke_name[] = {
|
static const char* poke_name[] = {
|
||||||
"misc/"POKE_DEVICE_NAME,
|
"misc/"POKE_DEVICE_NAME,
|
||||||
@@ -45,8 +42,6 @@ pci_module_info* pci;
|
|||||||
|
|
||||||
static int32 open_count;
|
static int32 open_count;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
init_hardware(void)
|
init_hardware(void)
|
||||||
@@ -94,7 +89,6 @@ find_device(const char* name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user