Added Jamfiles, changed some includes. The driver now builds for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20715 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,6 +5,7 @@ SubInclude HAIKU_TOP src add-ons kernel drivers bus ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers audio ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers common ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers disk ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers dvb ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers input ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers graphics ;
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers midi ;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers dvb ;
|
||||
|
||||
SubInclude HAIKU_TOP src add-ons kernel drivers dvb cx23882 ;
|
||||
@@ -0,0 +1,15 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel drivers dvb cx23882 ;
|
||||
|
||||
UsePrivateHeaders drivers ;
|
||||
|
||||
KernelAddon cx23882 :
|
||||
cx22702.c
|
||||
cx23882.c
|
||||
cx23882_i2c.c
|
||||
driver.c
|
||||
dtt7592.c
|
||||
dvb_interface.c
|
||||
i2c_core.c
|
||||
util.c
|
||||
;
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define REVISION "unknown"
|
||||
#define VERSION "1.0"
|
||||
#define BUILD __DATE__ " "__TIME__
|
||||
#define INFO1 "cx23882: DVB-T Driver. Version " VERSION ", Revision " REVISION ", Build " BUILD
|
||||
#define INFO2 "cx23882: Copyright (c) 2004-2006 Marcus Overhagen. All rights reserved.\n"
|
||||
#define INFO "cx23882: DVB-T Driver. Version " VERSION ", Revision " REVISION ", Build " BUILD "\n"
|
||||
|
||||
#define MAX_CARDS 8
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include <KernelExport.h>
|
||||
#include <string.h>
|
||||
#include "cx22702.h"
|
||||
#include "dtt7592.h"
|
||||
#include "config.h"
|
||||
@@ -36,6 +37,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if 0
|
||||
static void
|
||||
cx22702_reg_dump(i2c_bus *bus)
|
||||
{
|
||||
@@ -48,6 +50,7 @@ cx22702_reg_dump(i2c_bus *bus)
|
||||
dprintf("cx22702_reg 0x%02x value 0x%02x\n", i, data);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
status_t
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef __CX22702_H
|
||||
#define __CX22702_H
|
||||
|
||||
#include "i2c-core.h"
|
||||
#include "i2c_core.h"
|
||||
#include "dvb.h"
|
||||
|
||||
status_t cx22702_reg_write(i2c_bus *bus, uint8 reg, uint8 data);
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <SupportDefs.h>
|
||||
#include "driver.h"
|
||||
#include "cx23882_regs.h"
|
||||
#include "i2c-core.h"
|
||||
#include "i2c_core.h"
|
||||
|
||||
typedef struct {
|
||||
const pci_info * pci_info;
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "i2c.h"
|
||||
#include "i2c-core.h"
|
||||
#include "cx23882_i2c.h"
|
||||
#include "i2c_core.h"
|
||||
|
||||
|
||||
static void
|
||||
|
||||
@@ -29,10 +29,9 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "version.h"
|
||||
#include "config.h"
|
||||
#include "driver.h"
|
||||
#include "mktime.h"
|
||||
#include "dvb_interface.h"
|
||||
|
||||
#define TRACE_DRIVER
|
||||
#ifdef TRACE_DRIVER
|
||||
@@ -126,7 +125,7 @@ init_driver(void)
|
||||
load_driver_symbols("cx23882");
|
||||
#endif
|
||||
|
||||
dprintf(gBanner);
|
||||
dprintf(INFO);
|
||||
|
||||
item = (pci_info *)malloc(sizeof(pci_info));
|
||||
if (!item)
|
||||
|
||||
@@ -131,6 +131,7 @@ dtt7592_set_frequency(i2c_bus *bus, uint32 frequency, dvb_bandwidth_t bandwidth)
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
void
|
||||
dtt7582_dump(i2c_bus *bus)
|
||||
{
|
||||
@@ -163,6 +164,4 @@ dtt7582_test(i2c_bus *bus)
|
||||
dtt7592_set_frequency(bus, 333000000, DVB_BANDWIDTH_7_MHZ);
|
||||
dtt7582_dump(bus);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef __DTT7592_H
|
||||
#define __DTT7592_H
|
||||
|
||||
#include "i2c-core.h"
|
||||
#include "i2c_core.h"
|
||||
#include "dvb.h"
|
||||
|
||||
status_t dtt7592_write(i2c_bus *bus, const uint8 data[4]);
|
||||
|
||||
@@ -24,14 +24,15 @@
|
||||
|
||||
#include <KernelExport.h>
|
||||
#include <stdlib.h>
|
||||
#include "interface.h"
|
||||
#include <string.h>
|
||||
#include "dvb_interface.h"
|
||||
#include "cx23882.h"
|
||||
#include "cx23882_i2c.h"
|
||||
#include "cx22702.h"
|
||||
#include "dtt7592.h"
|
||||
#include "driver.h"
|
||||
#include "config.h"
|
||||
#include "util.h"
|
||||
#include "i2c.h"
|
||||
|
||||
#define TRACE_INTERFACE
|
||||
#ifdef TRACE_INTERFACE
|
||||
@@ -40,9 +41,8 @@
|
||||
#define TRACE(a...)
|
||||
#endif
|
||||
|
||||
static inline status_t user_memcpy(void *d, const void *s, size_t z) { memcpy(d, s, z); return B_OK; }
|
||||
#define B_BAD_ADDRESS B_ERROR
|
||||
|
||||
#if 0
|
||||
static void
|
||||
dump_eeprom(cx23882_device *device)
|
||||
{
|
||||
@@ -62,6 +62,7 @@ dump_eeprom(cx23882_device *device)
|
||||
TRACE("EEPROM %02x: %02x %02x %02x %02x %02x %02x %02x %02x\n", i * 8, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7]);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
status_t
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#ifndef __DVB_INTERFACE_H
|
||||
#define __DVB_INTERFACE_H
|
||||
|
||||
#include <PCI.h>
|
||||
|
||||
status_t interface_attach(void **cookie, const pci_info *info);
|
||||
void interface_detach(void *cookie);
|
||||
status_t interface_ioctl(void *cookie, uint32 op, void *arg, size_t len);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <KernelExport.h>
|
||||
#include "i2c-core.h"
|
||||
#include "i2c_core.h"
|
||||
|
||||
#define TRACE_I2C
|
||||
#ifdef TRACE_I2C
|
||||
|
||||
Reference in New Issue
Block a user