Turned off extensive debug output, minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22805 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,11 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007, Hugo Santos. All Rights Reserved.
|
* Copyright 2007, Hugo Santos. All Rights Reserved.
|
||||||
|
* Copyright 2004, Marcus Overhagen. All Rights Reserved.
|
||||||
|
*
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Hugo Santos, [email protected]
|
|
||||||
*
|
|
||||||
* Some of this code is based on previous work by Marcus Overhagen.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@@ -18,6 +15,13 @@
|
|||||||
#include <compat/sys/rman.h>
|
#include <compat/sys/rman.h>
|
||||||
|
|
||||||
|
|
||||||
|
//#define DEBUG_BUS_SPACE_RW
|
||||||
|
#ifdef DEBUG_BUS_SPACE_RW
|
||||||
|
# define TRACE_BUS_SPACE_RW(x) driver_printf x
|
||||||
|
#else
|
||||||
|
# define TRACE_BUS_SPACE_RW(x)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1))
|
#define ROUNDUP(a, b) (((a) + ((b)-1)) & ~((b)-1))
|
||||||
|
|
||||||
|
|
||||||
@@ -25,11 +29,9 @@ struct resource {
|
|||||||
int type;
|
int type;
|
||||||
bus_space_tag_t tag;
|
bus_space_tag_t tag;
|
||||||
bus_space_handle_t handle;
|
bus_space_handle_t handle;
|
||||||
|
|
||||||
area_id mapped_area;
|
area_id mapped_area;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct internal_intr {
|
struct internal_intr {
|
||||||
device_t dev;
|
device_t dev;
|
||||||
driver_intr_t handler;
|
driver_intr_t handler;
|
||||||
@@ -349,15 +351,6 @@ bus_generic_driver_added(device_t dev, driver_t *driver)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG_BUS_SPACE_RW
|
|
||||||
|
|
||||||
#ifdef DEBUG_BUS_SPACE_RW
|
|
||||||
#define TRACE_BUS_SPACE_RW(x) driver_printf x
|
|
||||||
#else
|
|
||||||
#define TRACE_BUS_SPACE_RW(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define BUS_SPACE_READ(size, type, fun) \
|
#define BUS_SPACE_READ(size, type, fun) \
|
||||||
type bus_space_read_##size(bus_space_tag_t tag, \
|
type bus_space_read_##size(bus_space_tag_t tag, \
|
||||||
bus_space_handle_t handle, bus_size_t offset) \
|
bus_space_handle_t handle, bus_size_t offset) \
|
||||||
|
|||||||
Reference in New Issue
Block a user