remove whitespace from end of lines
Modified: trunk/reactos/drivers/bus/acpi/ospm/acpisys.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/bn.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bm.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmnotify.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpm.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpower.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmrequest.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmsearch.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmxface.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/include/bm.h
Modified: trunk/reactos/drivers/bus/acpi/ospm/include/bn.h
Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/pdo.c
Modified: trunk/reactos/drivers/bus/isapnp/isapnp.c
Modified: trunk/reactos/drivers/bus/pci/fdo.c
Modified: trunk/reactos/drivers/bus/pci/pci.c
Modified: trunk/reactos/drivers/bus/pci/pcidef.h
Modified: trunk/reactos/drivers/bus/pci/pdo.c
Modified: trunk/reactos/drivers/bus/serenum/detect.c
Modified: trunk/reactos/drivers/bus/serenum/fdo.c
Modified: trunk/reactos/drivers/bus/serenum/misc.c
Modified: trunk/reactos/drivers/bus/serenum/pdo.c
Modified: trunk/reactos/drivers/bus/serenum/serenum.c
Modified: trunk/reactos/drivers/bus/serenum/serenum.h
Modified: trunk/reactos/drivers/dd/blue/blue.c
Modified: trunk/reactos/drivers/dd/bootvid/bootvid.c
Modified: trunk/reactos/drivers/dd/bootvid/bootvid.h
Modified: trunk/reactos/drivers/dd/debugout/debugout.c
Modified: trunk/reactos/drivers/dd/green/createclose.c
Modified: trunk/reactos/drivers/dd/green/dispatch.c
Modified: trunk/reactos/drivers/dd/green/green.c
Modified: trunk/reactos/drivers/dd/green/green.h
Modified: trunk/reactos/drivers/dd/green/keyboard.c
Modified: trunk/reactos/drivers/dd/green/misc.c
Modified: trunk/reactos/drivers/dd/green/pnp.c
Modified: trunk/reactos/drivers/dd/green/screen.c
Modified: trunk/reactos/drivers/dd/mpu401/mpu401.c
Modified: trunk/reactos/drivers/dd/mpu401/portio.c
Modified: trunk/reactos/drivers/dd/null/null.c
Modified: trunk/reactos/drivers/dd/parallel/parallel.c
Modified: trunk/reactos/drivers/dd/parallel/parallel.h
Modified: trunk/reactos/drivers/dd/ramdrv/ramdrv.c
Modified: trunk/reactos/drivers/dd/serial/circularbuffer.c
Modified: trunk/reactos/drivers/dd/serial/cleanup.c
Modified: trunk/reactos/drivers/dd/serial/close.c
Modified: trunk/reactos/drivers/dd/serial/create.c
Modified: trunk/reactos/drivers/dd/serial/devctrl.c
Modified: trunk/reactos/drivers/dd/serial/info.c
Modified: trunk/reactos/drivers/dd/serial/legacy.c
Modified: trunk/reactos/drivers/dd/serial/misc.c
Modified: trunk/reactos/drivers/dd/serial/pnp.c
Modified: trunk/reactos/drivers/dd/serial/power.c
Modified: trunk/reactos/drivers/dd/serial/rw.c
Modified: trunk/reactos/drivers/dd/serial/serial.c
Modified: trunk/reactos/drivers/dd/serial/serial.h
Modified: trunk/reactos/drivers/dd/sndblst/portio.c
Modified: trunk/reactos/drivers/dd/sndblst/sndblst.c
Modified: trunk/reactos/drivers/dd/sound/dsp.c
Modified: trunk/reactos/drivers/dd/sound/mixer.c
Modified: trunk/reactos/drivers/dd/sound/sb16.c
Modified: trunk/reactos/drivers/dd/sound/sb16.h
Modified: trunk/reactos/drivers/dd/sound/sound.c
Modified: trunk/reactos/drivers/dd/sound/wave.c
Modified: trunk/reactos/drivers/dd/sound/wave.h
Modified: trunk/reactos/drivers/dd/test/test.c
Modified: trunk/reactos/drivers/fs/cdfs/cdfs.c
Modified: trunk/reactos/drivers/fs/cdfs/cleanup.c
Modified: trunk/reactos/drivers/fs/cdfs/close.c
Modified: trunk/reactos/drivers/fs/cdfs/common.c
Modified: trunk/reactos/drivers/fs/cdfs/create.c
Modified: trunk/reactos/drivers/fs/cdfs/dirctl.c
Modified: trunk/reactos/drivers/fs/cdfs/fcb.c
Modified: trunk/reactos/drivers/fs/cdfs/finfo.c
Modified: trunk/reactos/drivers/fs/cdfs/fsctl.c
Modified: trunk/reactos/drivers/fs/cdfs/misc.c
Modified: trunk/reactos/drivers/fs/cdfs/rw.c
Modified: trunk/reactos/drivers/fs/ext2/attr.c
Modified: trunk/reactos/drivers/fs/ext2/blockdev.c
Modified: trunk/reactos/drivers/fs/ext2/dir.c
Modified: trunk/reactos/drivers/fs/ext2/ext2fs.h
Modified: trunk/reactos/drivers/fs/ext2/file.c
Modified: trunk/reactos/drivers/fs/ext2/inode.c
Modified: trunk/reactos/drivers/fs/ext2/quota.c
Modified: trunk/reactos/drivers/fs/ext2/rw.c
Modified: trunk/reactos/drivers/fs/ext2/security.c
Modified: trunk/reactos/drivers/fs/ext2/super.c
Modified: trunk/reactos/drivers/fs/fs_rec/fat.c
Modified: trunk/reactos/drivers/fs/minix/bitops.c
Modified: trunk/reactos/drivers/fs/minix/block.c
Modified: trunk/reactos/drivers/fs/minix/blockdev.c
Modified: trunk/reactos/drivers/fs/minix/cache.c
Modified: trunk/reactos/drivers/fs/minix/dir.c
Modified: trunk/reactos/drivers/fs/minix/inode.c
Modified: trunk/reactos/drivers/fs/minix/minix.h
Modified: trunk/reactos/drivers/fs/minix/mount.c
Modified: trunk/reactos/drivers/fs/minix/rw.c
Modified: trunk/reactos/drivers/fs/ms/create.c
Modified: trunk/reactos/drivers/fs/ms/finfo.c
[truncated at 100 lines; 288 more skipped]
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/acpisys.c
--- trunk/reactos/drivers/bus/acpi/ospm/acpisys.c 2005-05-08
02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/acpisys.c 2005-05-08
02:16:32 UTC (rev 15108)
@@ -16,7 +16,7 @@
#ifdef ALLOC_PRAGMA
-// Make the initialization routines discardable, so that they
+// Make the initialization routines discardable, so that they
// don't waste space
#pragma alloc_text(init, DriverEntry)
@@ -27,8 +27,8 @@
NTSTATUS
STDCALL
ACPIDispatchDeviceControl(
- IN PDEVICE_OBJECT DeviceObject,
- IN PIRP Irp)
+ IN PDEVICE_OBJECT DeviceObject,
+ IN PIRP Irp)
{
PIO_STACK_LOCATION IrpSp;
NTSTATUS Status;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/bn.c
--- trunk/reactos/drivers/bus/acpi/ospm/bn.c 2005-05-08 02:15:21 UTC
(rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/bn.c 2005-05-08 02:16:32 UTC
(rev 15108)
@@ -176,7 +176,7 @@
* -------------
* Either fixed-feature or generic (namespace) types.
*/
- if (strncmp(device->id.hid, BN_HID_POWER_BUTTON,
+ if (strncmp(device->id.hid, BN_HID_POWER_BUTTON,
sizeof(BM_DEVICE_HID)) == 0) {
if (device->id.type == BM_TYPE_FIXED_BUTTON) {
@@ -185,7 +185,7 @@
/* Register for fixed-feature events. */
status = acpi_install_fixed_event_handler(
- ACPI_EVENT_POWER_BUTTON,
bn_notify_fixed,
+ ACPI_EVENT_POWER_BUTTON,
bn_notify_fixed,
(void*)button);
}
else {
@@ -201,7 +201,7 @@
* -------------
* Either fixed-feature or generic (namespace) types.
*/
- else if (strncmp( device->id.hid, BN_HID_SLEEP_BUTTON,
+ else if (strncmp( device->id.hid, BN_HID_SLEEP_BUTTON,
sizeof(BM_DEVICE_HID)) == 0) {
if (device->id.type == BM_TYPE_FIXED_BUTTON) {
@@ -210,7 +210,7 @@
/* Register for fixed-feature events. */
status = acpi_install_fixed_event_handler(
- ACPI_EVENT_SLEEP_BUTTON,
bn_notify_fixed,
+ ACPI_EVENT_SLEEP_BUTTON,
bn_notify_fixed,
(void*)button);
}
else {
@@ -224,7 +224,7 @@
* LID Switch?
* -----------
*/
- else if (strncmp( device->id.hid, BN_HID_LID_SWITCH,
+ else if (strncmp( device->id.hid, BN_HID_LID_SWITCH,
sizeof(BM_DEVICE_HID)) == 0) {
button->type = BN_TYPE_LID_SWITCH;
@@ -360,7 +360,7 @@
*/
MEMCPY(criteria.hid, BN_HID_LID_SWITCH,
sizeof(BN_HID_LID_SWITCH));
status = bm_register_driver(&criteria, &driver);
-
+
if (status == AE_NOT_FOUND)
status = AE_OK;
@@ -457,13 +457,13 @@
case BN_TYPE_POWER_BUTTON_FIXED:
DEBUG_PRINT(ACPI_INFO, ("Fixed-feature button status
change event detected.\n"));
- /*bm_generate_event(button->device_handle, BN_PROC_ROOT,
+ /*bm_generate_event(button->device_handle, BN_PROC_ROOT,
BN_PROC_POWER_BUTTON, BN_NOTIFY_STATUS_CHANGE,
0);*/
break;
case BN_TYPE_SLEEP_BUTTON_FIXED:
DEBUG_PRINT(ACPI_INFO, ("Fixed-feature button status
change event detected.\n"));
- /*bm_generate_event(button->device_handle, BN_PROC_ROOT,
+ /*bm_generate_event(button->device_handle, BN_PROC_ROOT,
BN_PROC_SLEEP_BUTTON, BN_NOTIFY_STATUS_CHANGE,
0);*/
break;
@@ -507,11 +507,11 @@
case BM_NOTIFY_DEVICE_ADDED:
status = bn_add_device(device_handle, context);
break;
-
+
case BM_NOTIFY_DEVICE_REMOVED:
status = bn_remove_device(context);
break;
-
+
case BN_NOTIFY_STATUS_CHANGE:
DEBUG_PRINT(ACPI_INFO, ("Button status change event
detected.\n"));
@@ -525,7 +525,7 @@
case BN_TYPE_POWER_BUTTON:
case BN_TYPE_POWER_BUTTON_FIXED:
- /*bm_generate_event(device_handle, BN_PROC_ROOT,
+ /*bm_generate_event(device_handle, BN_PROC_ROOT,
BN_PROC_POWER_BUTTON, notify_type, 0);*/
break;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bm.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bm.c 2005-05-08
02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bm.c 2005-05-08
02:16:32 UTC (rev 15108)
@@ -214,7 +214,7 @@
* Evaluate _STA:
* --------------
*/
- status = bm_evaluate_simple_integer(device->acpi_handle, "_STA",
+ status = bm_evaluate_simple_integer(device->acpi_handle, "_STA",
&(device->status));
return status;
@@ -263,12 +263,12 @@
}
if (info.valid & ACPI_VALID_UID) {
- MEMCPY((void*)device->id.uid, (void*)info.unique_id,
+ MEMCPY((void*)device->id.uid, (void*)info.unique_id,
sizeof(BM_DEVICE_UID));
}
if (info.valid & ACPI_VALID_HID) {
- MEMCPY((void*)device->id.hid, (void*)info.hardware_id,
+ MEMCPY((void*)device->id.hid, (void*)info.hardware_id,
sizeof(BM_DEVICE_HID));
}
@@ -311,7 +311,7 @@
/*
* Presence of _DCK indicates a docking station.
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_DCK", &acpi_handle))) {
device->flags |= BM_FLAGS_DOCKING_STATION;
}
@@ -320,7 +320,7 @@
* Presence of _EJD and/or _EJx indicates 'ejectable'.
* TODO: _EJx...
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_EJD", &acpi_handle))) {
device->flags |= BM_FLAGS_EJECTABLE;
}
@@ -328,9 +328,9 @@
/*
* Presence of _PR0 or _PS0 indicates 'power
manageable'.
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PR0", &acpi_handle)) ||
-
ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+
ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PS0", &acpi_handle))) {
device->flags |= BM_FLAGS_POWER_CONTROL;
}
@@ -338,7 +338,7 @@
/*
* Presence of _CRS indicates 'configurable'.
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_CRS", &acpi_handle))) {
device->flags |= BM_FLAGS_CONFIGURABLE;
}
@@ -351,9 +351,9 @@
/*
* Presence of _HID or _ADR indicates 'identifiable'.
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_HID", &acpi_handle)) ||
- ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_ADR", &acpi_handle))) {
device->flags |= BM_FLAGS_IDENTIFIABLE;
}
@@ -361,7 +361,7 @@
/*
* Presence of _STA indicates 'dynamic status'.
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_STA", &acpi_handle))) {
device->flags |= BM_FLAGS_DYNAMIC_STATUS;
}
@@ -428,7 +428,7 @@
/*
* Device Type:
* ------------
- */
+ */
switch (acpi_type) {
case INTERNAL_TYPE_SCOPE:
device->id.type = BM_TYPE_SCOPE;
@@ -481,7 +481,7 @@
/*
* Power Management:
* -----------------
- * If this node doesn't provide direct power control
+ * If this node doesn't provide direct power control
* then we inherit PM capabilities from its parent.
*
* TODO: Inherit!
@@ -572,8 +572,8 @@
if (ACPI_SUCCESS(status)) {
/*
- * TODO: This is a hack to get around the
problem
- * identifying scope objects. Scopes
+ * TODO: This is a hack to get around the
problem
+ * identifying scope objects. Scopes
* somehow need to be uniquely identified.
*/
status = acpi_get_type(child_handle,
&acpi_type);
@@ -621,7 +621,7 @@
else {
level--;
child_handle = parent_handle;
- acpi_get_parent(parent_handle,
+ acpi_get_parent(parent_handle,
&parent_handle);
if (parent) {
@@ -683,7 +683,7 @@
node->device.acpi_handle = ACPI_ROOT_OBJECT;
node->device.id.type = BM_TYPE_FIXED_BUTTON;
if (device_hid) {
- MEMCPY((void*)node->device.id.hid, device_hid,
+ MEMCPY((void*)node->device.id.hid, device_hid,
sizeof(node->device.id.hid));
}
node->device.flags = BM_FLAGS_FIXED_FEATURE;
@@ -950,14 +950,14 @@
*/
DEBUG_PRINT(ACPI_INFO, ("Registering for all device
notifications.\n"));
- status = acpi_install_notify_handler(ACPI_ROOT_OBJECT,
+ status = acpi_install_notify_handler(ACPI_ROOT_OBJECT,
ACPI_SYSTEM_NOTIFY, &bm_notify, NULL);
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_ERROR, ("Unable to register for
standard notifications.\n"));
return_ACPI_STATUS(status);
}
- status = acpi_install_notify_handler(ACPI_ROOT_OBJECT,
+ status = acpi_install_notify_handler(ACPI_ROOT_OBJECT,
ACPI_DEVICE_NOTIFY, &bm_notify, NULL);
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_ERROR, ("Unable to register for
device-specific notifications.\n"));
@@ -1019,13 +1019,13 @@
DEBUG_PRINT(ACPI_INFO, ("Unregistering for device
notifications.\n"));
- status = acpi_remove_notify_handler(ACPI_ROOT_OBJECT,
+ status = acpi_remove_notify_handler(ACPI_ROOT_OBJECT,
ACPI_SYSTEM_NOTIFY, &bm_notify);
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_ERROR, ("Unable to un-register for
standard notifications.\n"));
}
- status = acpi_remove_notify_handler(ACPI_ROOT_OBJECT,
+ status = acpi_remove_notify_handler(ACPI_ROOT_OBJECT,
ACPI_DEVICE_NOTIFY, &bm_notify);
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_ERROR, ("Unable to un-register for
device-specific notifications.\n"));
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmnotify.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmnotify.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmnotify.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -63,13 +63,13 @@
DEBUG_PRINT(ACPI_INFO, ("Sending notify [0x%02x] to device
[0x%02x].\n", notify_type, node->device.handle));
- if (!(node->device.flags & BM_FLAGS_DRIVER_CONTROL) ||
+ if (!(node->device.flags & BM_FLAGS_DRIVER_CONTROL) ||
!(node->driver.notify)) {
DEBUG_PRINT(ACPI_WARN, ("No driver installed for device
[0x%02x].\n", node->device.handle));
return_ACPI_STATUS(AE_NOT_EXIST);
}
- status = node->driver.notify(notify_type, node->device.handle,
+ status = node->driver.notify(notify_type, node->device.handle,
&(node->driver.context));
return_ACPI_STATUS(status);
@@ -130,7 +130,7 @@
if (ACPI_FAILURE(status)) {
return_ACPI_STATUS(status);
}
-
+
if (old_status == node->device.status) {
return_ACPI_STATUS(AE_OK);
}
@@ -138,12 +138,12 @@
if (status_change) {
*status_change = TRUE;
}
-
+
/*
* Device Insertion?
* -----------------
*/
- if ((device->status & BM_STATUS_PRESENT) &&
+ if ((device->status & BM_STATUS_PRESENT) &&
!(old_status & BM_STATUS_PRESENT)) {
/* TODO: Make sure driver is loaded, and if not, load.
*/
status = bm_generate_notify(node,
BM_NOTIFY_DEVICE_ADDED);
@@ -153,7 +153,7 @@
* Device Removal?
* ---------------
*/
- else if (!(device->status & BM_STATUS_PRESENT) &&
+ else if (!(device->status & BM_STATUS_PRESENT) &&
(old_status & BM_STATUS_PRESENT)) {
/* TODO: Unload driver if last device instance. */
status = bm_generate_notify(node,
BM_NOTIFY_DEVICE_REMOVED);
@@ -247,7 +247,7 @@
/*
* Device-Specific or Standard?
* ----------------------------
- * Device-specific notifies are forwarded to the control
module's
+ * Device-specific notifies are forwarded to the control
module's
* notify() function for processing. Standard notifies are
handled
* internally.
*/
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpm.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpm.c 2005-05-08
02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpm.c 2005-05-08
02:16:32 UTC (rev 15108)
@@ -72,21 +72,21 @@
/*
* Calculate Power State:
* ----------------------
- * Try to infer the devices's power state by checking the state
of
- * the devices's power resources. We start by evaluating _PR0
- * (resource requirements at D0) and work through _PR1 and _PR2.
- * We know the current devices power state when all resources
(for
- * a give Dx state) are ON. If no power resources are on then
the
+ * Try to infer the devices's power state by checking the state
of
+ * the devices's power resources. We start by evaluating _PR0
+ * (resource requirements at D0) and work through _PR1 and _PR2.
+ * We know the current devices power state when all resources
(for
+ * a give Dx state) are ON. If no power resources are on then
the
* device is assumed to be off (D3).
*/
for (i=ACPI_STATE_D0; i<ACPI_STATE_D3; i++) {
- status = bm_evaluate_reference_list(device->acpi_handle,
+ status = bm_evaluate_reference_list(device->acpi_handle,
object_name, &pr_list);
if (ACPI_SUCCESS(status)) {
- status = bm_pr_list_get_state(&pr_list,
+ status = bm_pr_list_get_state(&pr_list,
&list_state);
if (ACPI_SUCCESS(status)) {
@@ -137,7 +137,7 @@
device->power.state = ACPI_STATE_UNKNOWN;
if (device->flags & BM_FLAGS_POWER_STATE) {
- status = bm_evaluate_simple_integer(device->acpi_handle,
+ status = bm_evaluate_simple_integer(device->acpi_handle,
"_PSC", &(device->power.state));
}
else {
@@ -204,24 +204,24 @@
/*
* Get Resources:
* --------------
- * Get the power resources associated with the device's current
+ * Get the power resources associated with the device's current
* and target power states.
*/
if (device->power.state != ACPI_STATE_UNKNOWN) {
object_name[3] = '0' + device->power.state;
- bm_evaluate_reference_list(device->acpi_handle,
+ bm_evaluate_reference_list(device->acpi_handle,
object_name, ¤t_list);
}
object_name[3] = '0' + state;
- bm_evaluate_reference_list(device->acpi_handle, object_name,
+ bm_evaluate_reference_list(device->acpi_handle, object_name,
&target_list);
/*
* Transition Resources:
* ---------------------
- * Transition all power resources referenced by this device to
- * the correct power state (taking into consideration sequencing
+ * Transition all power resources referenced by this device to
+ * the correct power state (taking into consideration sequencing
* and dependencies to other devices).
*/
if (current_list.count || target_list.count) {
@@ -234,7 +234,7 @@
/*
* Execute _PSx:
* -------------
- * Execute the _PSx method corresponding to the target Dx state,
+ * Execute the _PSx method corresponding to the target Dx state,
* if it exists.
*/
object_name[2] = 'S';
@@ -287,17 +287,17 @@
* Power Management Flags:
* -----------------------
*/
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PSC",
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PSC",
&acpi_handle))) {
device->power.flags |= BM_FLAGS_POWER_STATE;
}
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_IRC",
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_IRC",
&acpi_handle))) {
device->power.flags |= BM_FLAGS_INRUSH_CURRENT;
}
- if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PRW",
+ if (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PRW",
&acpi_handle))) {
device->power.flags |= BM_FLAGS_WAKE_CAPABLE;
}
@@ -317,22 +317,22 @@
* Figure out which Dx states are supported by this device for
the
* S0 (working) state. Note that D0 and D3 are required
(assumed).
*/
- device->power.dx_supported[ACPI_STATE_S0] = BM_FLAGS_D0_SUPPORT
|
+ device->power.dx_supported[ACPI_STATE_S0] = BM_FLAGS_D0_SUPPORT
|
BM_FLAGS_D3_SUPPORT;
- if ((ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PR1",
- &acpi_handle))) ||
- (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PS1",
+ if ((ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PR1",
+ &acpi_handle))) ||
+ (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PS1",
&acpi_handle)))) {
- device->power.dx_supported[ACPI_STATE_S0] |=
+ device->power.dx_supported[ACPI_STATE_S0] |=
BM_FLAGS_D1_SUPPORT;
}
- if ((ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PR2",
- &acpi_handle))) ||
- (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PS2",
+ if ((ACPI_SUCCESS(acpi_get_handle(device->acpi_handle, "_PR2",
+ &acpi_handle))) ||
+ (ACPI_SUCCESS(acpi_get_handle(device->acpi_handle,
"_PS2",
&acpi_handle)))) {
- device->power.dx_supported[ACPI_STATE_S0] |=
+ device->power.dx_supported[ACPI_STATE_S0] |=
BM_FLAGS_D2_SUPPORT;
}
@@ -352,28 +352,28 @@
/*
* Evalute _SxD:
* -------------
- * Which returns the highest (power) Dx state supported
in
- * this system (Sx) state. We convert this value to a
bit
+ * Which returns the highest (power) Dx state supported
in
+ * this system (Sx) state. We convert this value to a
bit
* mask of supported states (conceptually simpler).
*/
- status = bm_evaluate_simple_integer(device->acpi_handle,
+ status = bm_evaluate_simple_integer(device->acpi_handle,
object_name, &dx_supported);
if (ACPI_SUCCESS(status)) {
switch (dx_supported) {
case 0:
- device->power.dx_supported[i] |=
+ device->power.dx_supported[i] |=
BM_FLAGS_D0_SUPPORT;
/* fall through */
case 1:
- device->power.dx_supported[i] |=
+ device->power.dx_supported[i] |=
BM_FLAGS_D1_SUPPORT;
/* fall through */
case 2:
- device->power.dx_supported[i] |=
+ device->power.dx_supported[i] |=
BM_FLAGS_D2_SUPPORT;
/* fall through */
case 3:
- device->power.dx_supported[i] |=
+ device->power.dx_supported[i] |=
BM_FLAGS_D3_SUPPORT;
break;
}
@@ -381,12 +381,12 @@
/*
* Validate:
* ---------
- * Mask of any states that _Sx_d falsely
advertises
- * (e.g.claims D1 support but neither _PR2 or
_PS2
- * exist). In other words, S1-S5 can't offer a
Dx
+ * Mask of any states that _Sx_d falsely
advertises
+ * (e.g.claims D1 support but neither _PR2 or
_PS2
+ * exist). In other words, S1-S5 can't offer a
Dx
* state that isn't supported by S0.
*/
- device->power.dx_supported[i] &=
+ device->power.dx_supported[i] &=
device->power.dx_supported[ACPI_STATE_S0];
}
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpower.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpower.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmpower.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -27,7 +27,7 @@
* TODO:
* -----
* 1. Sequencing of power resource list transitions.
- * 2. Global serialization of power resource transtions (see ACPI
+ * 2. Global serialization of power resource transtions (see ACPI
* spec section 7.1.2/7.1.3).
* 3. Better error handling.
*/
@@ -51,13 +51,13 @@
BM_NOTIFY notify_type,
BM_HANDLE device_handle,
void **context);
-
+
ACPI_STATUS
bm_pr_request (
BM_REQUEST *request,
void *context);
-
+
/***********************************************************************
*****
* Internal Functions
************************************************************************
****/
@@ -133,7 +133,7 @@
pr->state = ACPI_STATE_UNKNOWN;
- /*
+ /*
* Evaluate _STA:
* --------------
* Evalute _STA to determine whether the power resource is ON or
OFF.
@@ -151,7 +151,7 @@
}
/*
- * Mask off all bits but the first as some systems return
non-standard
+ * Mask off all bits but the first as some systems return
non-standard
* values (e.g. 0x51).
*/
switch (device_status & 0x01) {
@@ -269,7 +269,7 @@
* -----------------------------
* The current state of a list of power resources is ON if all
* power resources are currently in the ON state. In other
words,
- * if any power resource in the list is OFF then the collection
+ * if any power resource in the list is OFF then the collection
* isn't fully ON.
*/
for (i = 0; i < pr_list->count; i++) {
@@ -328,13 +328,13 @@
/*
* Reference Target:
* -----------------
- * Reference all resources for the target power state first (so
- * the device doesn't get turned off while transitioning).
Power
+ * Reference all resources for the target power state first (so
+ * the device doesn't get turned off while transitioning).
Power
* resources that aren't on (new reference count of 1) are
turned on.
*/
for (i = 0; i < target_list->count; i++) {
- status = bm_get_device_context(target_list->handles[i],
+ status = bm_get_device_context(target_list->handles[i],
(BM_DRIVER_CONTEXT*)(&pr));
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_WARN, ("Invalid reference to
power resource [0x%02X].\n", target_list->handles[i]));
@@ -355,12 +355,12 @@
* Dereference Current:
* --------------------
* Dereference all resources for the current power state. Power
- * resources no longer referenced (new reference count of 0) are
+ * resources no longer referenced (new reference count of 0) are
* turned off.
*/
for (i = 0; i < current_list->count; i++) {
- status = bm_get_device_context(current_list->handles[i],
+ status = bm_get_device_context(current_list->handles[i],
(BM_DRIVER_CONTEXT*)(&pr));
if (ACPI_FAILURE(status)) {
DEBUG_PRINT(ACPI_WARN, ("Invalid reference to
power resource [0x%02X].\n", target_list->handles[i]));
@@ -434,7 +434,7 @@
pr->device_handle = device->handle;
pr->acpi_handle = device->acpi_handle;
- /*
+ /*
* Get information on this power resource.
*/
status = acpi_evaluate_object(pr->acpi_handle, NULL, NULL,
&buffer);
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmrequest.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmrequest.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmrequest.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -62,7 +62,7 @@
DEBUG_PRINT(ACPI_INFO, ("Sending request [0x%02x] to device
[0x%02x].\n", request->command, node->device.handle));
- if (!(node->device.flags & BM_FLAGS_DRIVER_CONTROL) ||
+ if (!(node->device.flags & BM_FLAGS_DRIVER_CONTROL) ||
!(node->driver.request)) {
DEBUG_PRINT(ACPI_WARN, ("No driver installed for device
[0x%02x].\n", node->device.handle));
return_ACPI_STATUS(AE_NOT_EXIST);
@@ -137,7 +137,7 @@
if (ACPI_FAILURE(status)) {
break;
}
- status = bm_copy_to_buffer(&(request->buffer),
+ status = bm_copy_to_buffer(&(request->buffer),
&(device->power.state), sizeof(BM_POWER_STATE));
break;
@@ -145,7 +145,7 @@
{
BM_POWER_STATE *power_state = NULL;
- status = bm_cast_buffer(&(request->buffer),
+ status = bm_cast_buffer(&(request->buffer),
(void**)&power_state, sizeof(BM_POWER_STATE));
if (ACPI_FAILURE(status)) {
break;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmsearch.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmsearch.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmsearch.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -57,7 +57,7 @@
return AE_BAD_PARAMETER;
}
- /*
+ /*
* Present?
* --------
* We're only going to match on devices that are present.
@@ -67,22 +67,22 @@
return AE_NOT_FOUND;
}
- /*
+ /*
* type?
*/
if (criteria->type && !(criteria->type & device->id.type)) {
return AE_NOT_FOUND;
}
- /*
+ /*
* hid?
*/
- if ((criteria->hid[0]) && (0 != STRNCMP(criteria->hid,
+ if ((criteria->hid[0]) && (0 != STRNCMP(criteria->hid,
device->id.hid, sizeof(BM_DEVICE_HID)))) {
return AE_NOT_FOUND;
}
- /*
+ /*
* adr?
*/
if ((criteria->adr) && (criteria->adr != device->id.adr)) {
@@ -149,7 +149,7 @@
if (node->scope.head) {
status = bm_compare(&(node->device), criteria);
if (ACPI_SUCCESS(status)) {
- results->handles[results->count++] =
+ results->handles[results->count++] =
node->device.handle;
}
node = node->scope.head;
@@ -163,16 +163,16 @@
else {
status = bm_compare(&(node->device), criteria);
if (ACPI_SUCCESS(status)) {
- results->handles[results->count++] =
+ results->handles[results->count++] =
node->device.handle;
}
/*
* Locate Next Device:
* -------------------
- * The next node is either a peer at this level
- * (node->next is valid), or we work are way
back
- * up the tree until we either find a non-parsed
+ * The next node is either a peer at this level
+ * (node->next is valid), or we work are way
back
+ * up the tree until we either find a non-parsed
* peer or hit the top (node->parent is NULL).
*/
while (!node->next && node->parent) {
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmutils.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -199,7 +199,7 @@
if (!package || (package->type != ACPI_TYPE_PACKAGE) ||
(package->package.count == 0) || !package_format ||
- (package_format->length < 1) ||
+ (package_format->length < 1) ||
(!package_format->pointer) || !buffer) {
return_ACPI_STATUS(AE_BAD_PARAMETER);
}
@@ -228,7 +228,7 @@
tail_offset += sizeof(ACPI_INTEGER);
break;
case 'S':
- size_required += sizeof(u8*) +
+ size_required += sizeof(u8*) +
sizeof(ACPI_INTEGER) + 1;
tail_offset += sizeof(ACPI_INTEGER);
break;
@@ -243,12 +243,12 @@
case ACPI_TYPE_BUFFER:
switch (format[i]) {
case 'S':
- size_required += sizeof(u8*) +
+ size_required += sizeof(u8*) +
element->string.length + 1;
tail_offset += sizeof(u8*);
break;
case 'B':
- size_required += sizeof(u8*) +
+ size_required += sizeof(u8*) +
element->buffer.length;
tail_offset += sizeof(u8*);
break;
@@ -293,14 +293,14 @@
case ACPI_TYPE_INTEGER:
switch (format[i]) {
case 'N':
- *((ACPI_INTEGER*)head) =
+ *((ACPI_INTEGER*)head) =
element->integer.value;
head += sizeof(ACPI_INTEGER);
break;
case 'S':
pointer = (u8**)head;
*pointer = tail;
- *((ACPI_INTEGER*)tail) =
+ *((ACPI_INTEGER*)tail) =
element->integer.value;
head += sizeof(ACPI_INTEGER*);
tail += sizeof(ACPI_INTEGER);
@@ -320,7 +320,7 @@
case 'S':
pointer = (u8**)head;
*pointer = tail;
- memcpy(tail, element->string.pointer,
+ memcpy(tail, element->string.pointer,
element->string.length);
head += sizeof(u8*);
tail += element->string.length;
@@ -331,7 +331,7 @@
case 'B':
pointer = (u8**)head;
*pointer = tail;
- memcpy(tail, element->buffer.pointer,
+ memcpy(tail, element->buffer.pointer,
element->buffer.length);
head += sizeof(u8*);
tail += element->buffer.length;
@@ -361,11 +361,11 @@
* PARAMETERS: <TBD>
*
* RETURN: AE_OK
- * AE_BUFFER_OVERFLOW Evaluated object returned data, but
+ * AE_BUFFER_OVERFLOW Evaluated object returned data, but
* caller did not provide buffer.
*
* DESCRIPTION: Helper for acpi_evaluate_object that handles buffer
- * allocation. Note that the caller is responsible for
+ * allocation. Note that the caller is responsible for
* freeing buffer->pointer!
*
************************************************************************
****/
@@ -389,8 +389,8 @@
/*
* Evalute Object:
* ---------------
- * The first attempt is just to get the size of the object data
- * (that is unless there's no return data, e.g. _INI); the
second
+ * The first attempt is just to get the size of the object data
+ * (that is unless there's no return data, e.g. _INI); the
second
* gets the data.
*/
status = acpi_evaluate_object(acpi_handle, pathname, arguments,
buffer);
@@ -407,14 +407,14 @@
}
/* Re-evaluate -- this time it should work */
- status = acpi_evaluate_object(acpi_handle, pathname,
+ status = acpi_evaluate_object(acpi_handle, pathname,
arguments, buffer);
}
if (ACPI_FAILURE(status)) {
DEBUG_EVAL_ERROR(ACPI_WARN, acpi_handle, pathname,
status);
if (buffer && buffer->pointer) {
- acpi_os_free(buffer->pointer);
+ acpi_os_free(buffer->pointer);
buffer->pointer = NULL;
buffer->length = 0;
}
@@ -467,7 +467,7 @@
* Validate Data:
* --------------
*/
- status = bm_cast_buffer(&buffer, (void**)&element,
+ status = bm_cast_buffer(&buffer, (void**)&element,
sizeof(ACPI_OBJECT));
if (ACPI_FAILURE(status)) {
DEBUG_EVAL_ERROR(ACPI_WARN, acpi_handle, pathname,
status);
@@ -535,7 +535,7 @@
* Validate Package:
* -----------------
*/
- status = bm_cast_buffer(&buffer, (void**)&package,
+ status = bm_cast_buffer(&buffer, (void**)&package,
sizeof(ACPI_OBJECT));
if (ACPI_FAILURE(status)) {
DEBUG_EVAL_ERROR(ACPI_WARN, acpi_handle, pathname,
status);
@@ -571,7 +571,7 @@
* Resolve reference string (e.g. "\_PR_.CPU_") to an
* ACPI_HANDLE.
*/
- status = acpi_get_handle(acpi_handle,
+ status = acpi_get_handle(acpi_handle,
element->string.pointer, &reference_handle);
if (ACPI_FAILURE(status)) {
status = AE_BAD_DATA;
@@ -583,7 +583,7 @@
/*
* Resolve ACPI_HANDLE to BM_HANDLE.
*/
- status = bm_get_handle(reference_handle,
+ status = bm_get_handle(reference_handle,
&(reference_list->handles[i]));
if (ACPI_FAILURE(status)) {
status = AE_BAD_DATA;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmxface.c
--- trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmxface.c
2005-05-08 02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/busmgr/bmxface.c
2005-05-08 02:16:32 UTC (rev 15108)
@@ -79,7 +79,7 @@
if (!BM_NODE_PRESENT(node->parent)) {
return_ACPI_STATUS(AE_OK);
}
-
+
/*
* Dynamic Status?
* ---------------
@@ -94,7 +94,7 @@
* Evaluate _STA:
* --------------
*/
- status = bm_evaluate_simple_integer(node->device.acpi_handle,
"_STA",
+ status = bm_evaluate_simple_integer(node->device.acpi_handle,
"_STA",
&(node->device.status));
if (ACPI_SUCCESS(status)) {
*device_status = node->device.status;
@@ -232,7 +232,7 @@
/*
* Install driver:
* ----------------
- * For each match, record the driver information and execute the
+ * For each match, record the driver information and execute the
* driver's Notify() funciton (if present) to notify the driver
* of the device's presence.
*/
@@ -247,7 +247,7 @@
DEBUG_PRINT(ACPI_INFO, ("Registering driver for device
[0x%02x].\n", node->device.handle));
/* Notify driver of new device. */
- status = driver->notify(BM_NOTIFY_DEVICE_ADDED,
+ status = driver->notify(BM_NOTIFY_DEVICE_ADDED,
node->device.handle, &(node->driver.context));
if (ACPI_SUCCESS(status)) {
node->driver.notify = driver->notify;
@@ -319,7 +319,7 @@
DEBUG_PRINT(ACPI_INFO, ("Unregistering driver for device
[0x%02x].\n", node->device.handle));
/* Notify driver of device removal. */
- status = node->driver.notify(BM_NOTIFY_DEVICE_REMOVED,
+ status = node->driver.notify(BM_NOTIFY_DEVICE_REMOVED,
node->device.handle, &(node->driver.context));
node->device.flags &= ~BM_FLAGS_DRIVER_CONTROL;
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
--- trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-05-08 02:15:21 UTC
(rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/fdo.c 2005-05-08 02:16:32 UTC
(rev 15108)
@@ -128,7 +128,7 @@
RESOURCE* resource;
ULONG i;
KIRQL Dirql;
-
+
/* Count number of resources */
Done = FALSE;
resource = resources;
@@ -161,7 +161,7 @@
}
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT)
resource->length);
}
-
+
/* Allocate memory */
*ResourceListSize = sizeof(CM_RESOURCE_LIST) +
sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR) * (NumberOfResources - 1);
ResourceList = (PCM_RESOURCE_LIST)ExAllocatePool(PagedPool,
*ResourceListSize);
@@ -175,7 +175,7 @@
ResourceList->List[0].PartialResourceList.Revision = 1;
ResourceList->List[0].PartialResourceList.Count = NumberOfResources;
ResourceDescriptor =
ResourceList->List[0].PartialResourceList.PartialDescriptors;
-
+
/* Fill resources list structure */
Done = FALSE;
resource = resources;
@@ -189,7 +189,7 @@
for (i = 0; i < irq_data->number_of_interrupts; i++)
{
ResourceDescriptor->Type = CmResourceTypeInterrupt;
-
+
ResourceDescriptor->ShareDisposition =
(irq_data->shared_exclusive == SHARED ?
CmResourceShareShared : CmResourceShareDeviceExclusive);
ResourceDescriptor->Flags =
@@ -253,7 +253,7 @@
}
resource = (RESOURCE *) ((NATIVE_UINT) resource + (NATIVE_UINT)
resource->length);
}
-
+
acpi_rs_dump_resource_list(resource);
return TRUE;
}
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/include/bm.h
--- trunk/reactos/drivers/bus/acpi/ospm/include/bm.h 2005-05-08
02:15:21 UTC (rev 15107)
+++ trunk/reactos/drivers/bus/acpi/ospm/include/bm.h 2005-05-08
02:16:32 UTC (rev 15108)
@@ -158,7 +158,7 @@
#define BM_HID_SLEEP_BUTTON "PNP0C0E"
/*
- * BM_DEVICE_CID:
+ * BM_DEVICE_CID:
* The compatibility ID can be a string with 44 characters
* The extra pad is in case there is a change. It also
* provides 8 byte alignment for the BM_DEVICE_ID structure.
@@ -564,7 +564,7 @@
ACPI_STATUS
[truncated at 1000 lines; 39227 more skipped]
remove whitespace from end of lines
Modified: trunk/reactos/boot/freeldr/fdebug/fdebug.c
Modified: trunk/reactos/boot/freeldr/fdebug/resource.h
Modified: trunk/reactos/boot/freeldr/fdebug/rs232.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
Modified: trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c
Modified: trunk/reactos/boot/freeldr/freeldr/cmdline.c
Modified: trunk/reactos/boot/freeldr/freeldr/custom.c
Modified: trunk/reactos/boot/freeldr/freeldr/disk/partition.c
Modified: trunk/reactos/boot/freeldr/freeldr/drivemap.c
Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ext2.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.h
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/linux.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/machine.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/multiboot.h
Modified: trunk/reactos/boot/freeldr/freeldr/include/rtl.h
Modified: trunk/reactos/boot/freeldr/freeldr/inifile/parse.c
Modified: trunk/reactos/boot/freeldr/freeldr/linuxboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/math/i386.h
Modified: trunk/reactos/boot/freeldr/freeldr/math/powerpc.h
Modified: trunk/reactos/boot/freeldr/freeldr/mm/meminit.c
Modified: trunk/reactos/boot/freeldr/freeldr/multiboot.c
Modified: trunk/reactos/boot/freeldr/freeldr/options.c
Modified: trunk/reactos/boot/freeldr/freeldr/oslist.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/binhive.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/reactos.c
Modified: trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c
Modified: trunk/reactos/boot/freeldr/freeldr/rtl/memset.c
Modified: trunk/reactos/boot/freeldr/freeldr/rtl/print.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/gui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tui.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/tuimenu.c
Modified: trunk/reactos/boot/freeldr/freeldr/ui/ui.c
Modified: trunk/reactos/boot/freeldr/freeldr/version.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/bank.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/fade.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/palette.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/pixel.c
Modified: trunk/reactos/boot/freeldr/freeldr/video/video.c
Modified: trunk/reactos/boot/freeldr/install/linux/finstext2.h
Modified: trunk/reactos/boot/freeldr/install/volume.c
Modified: trunk/reactos/boot/freeldr/ntvdmpat.c
_____
Modified: trunk/reactos/boot/freeldr/fdebug/fdebug.c
--- trunk/reactos/boot/freeldr/fdebug/fdebug.c 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/fdebug.c 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -57,7 +57,7 @@
MyRegisterClass(hInstance);
// Perform application initialization:
- if (!InitInstance (hInstance, nCmdShow))
+ if (!InitInstance (hInstance, nCmdShow))
{
return FALSE;
}
@@ -65,9 +65,9 @@
hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_FDEBUG);
// Main message loop:
- while (GetMessage(&msg, NULL, 0, 0))
+ while (GetMessage(&msg, NULL, 0, 0))
{
- if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
+ if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
@@ -96,7 +96,7 @@
{
WNDCLASSEX wcex;
- wcex.cbSize = sizeof(WNDCLASSEX);
+ wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = (WNDPROC)WndProc;
@@ -156,7 +156,7 @@
NONCLIENTMETRICS ncm;
HFONT hFont;
- switch (message)
+ switch (message)
{
case WM_CREATE:
@@ -174,7 +174,7 @@
break;
case WM_COMMAND:
- wmId = LOWORD(wParam);
+ wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
if (lParam == (LPARAM)hEditWnd && wmEvent == EN_CHANGE)
@@ -312,7 +312,7 @@
return TRUE;
case WM_COMMAND:
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
@@ -340,7 +340,7 @@
GetWindowText(GetDlgItem(hDlg, IDC_BAUTRATE),
strBaudRate, MAX_PATH);
}
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
@@ -392,7 +392,7 @@
GetWindowText(GetDlgItem(hDlg,
IDC_CAPTUREFILENAME), strCaptureFileName, MAX_PATH);
}
- if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
+ if (LOWORD(wParam) == IDOK || LOWORD(wParam) ==
IDCANCEL)
{
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
_____
Modified: trunk/reactos/boot/freeldr/fdebug/resource.h
--- trunk/reactos/boot/freeldr/fdebug/resource.h 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/resource.h 2005-05-08
02:15:21 UTC (rev 15107)
@@ -29,7 +29,7 @@
#define IDC_STATIC -1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 132
_____
Modified: trunk/reactos/boot/freeldr/fdebug/rs232.c
--- trunk/reactos/boot/freeldr/fdebug/rs232.c 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/fdebug/rs232.c 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -83,16 +83,16 @@
// [in] Pointer to a null-terminated string that specifies
device-control information.
// The string must have the same form as the mode command's
command-line arguments.
//
-// For example, the following string specifies a baud rate of 1200,
no parity, 8 data bits, and 1 stop bit:
+// For example, the following string specifies a baud rate of 1200,
no parity, 8 data bits, and 1 stop bit:
// "baud=1200 parity=N data=8 stop=1"
//
// The following string specifies a baud rate of 115200, no parity, 8
data bits, and 1 stop bit:
// "115200,n,8,1"
//
-// The device name is ignored if it is included in the string, but it
must specify a valid device, as follows:
+// The device name is ignored if it is included in the string, but it
must specify a valid device, as follows:
// "COM1: baud=1200 parity=N data=8 stop=1"
//
-// For further information on mode command syntax, refer to the
end-user documentation for your operating system.
+// For further information on mode command syntax, refer to the
end-user documentation for your operating system.
BOOL Rs232ConfigurePortWin32(TCHAR* DeviceControlString)
{
DCB dcb;
@@ -157,28 +157,28 @@
}
// Members
-// ReadIntervalTimeout
-// Specifies the maximum time, in milliseconds, allowed to elapse
between the arrival of two characters on the communications line. During
a ReadFile operation, the time period begins when the first character is
received. If the interval between the arrival of any two characters
exceeds this amount, the ReadFile operation is completed and any
buffered data is returned. A value of zero indicates that interval
time-outs are not used.
-// A value of MAXDWORD, combined with zero values for both the
ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members,
specifies that the read operation is to return immediately with the
characters that have already been received, even if no characters have
been received.
-//
-// ReadTotalTimeoutMultiplier
-// Specifies the multiplier, in milliseconds, used to calculate the
total time-out period for read operations. For each read operation, this
value is multiplied by the requested number of bytes to be read.
-// ReadTotalTimeoutConstant
-// Specifies the constant, in milliseconds, used to calculate the
total time-out period for read operations. For each read operation, this
value is added to the product of the ReadTotalTimeoutMultiplier member
and the requested number of bytes.
-// A value of zero for both the ReadTotalTimeoutMultiplier and
ReadTotalTimeoutConstant members indicates that total time-outs are not
used for read operations.
-//
-// WriteTotalTimeoutMultiplier
-// Specifies the multiplier, in milliseconds, used to calculate the
total time-out period for write operations. For each write operation,
this value is multiplied by the number of bytes to be written.
-// WriteTotalTimeoutConstant
-// Specifies the constant, in milliseconds, used to calculate the
total time-out period for write operations. For each write operation,
this value is added to the product of the WriteTotalTimeoutMultiplier
member and the number of bytes to be written.
-// A value of zero for both the WriteTotalTimeoutMultiplier and
WriteTotalTimeoutConstant members indicates that total time-outs are not
used for write operations.
-//
+// ReadIntervalTimeout
+// Specifies the maximum time, in milliseconds, allowed to elapse
between the arrival of two characters on the communications line. During
a ReadFile operation, the time period begins when the first character is
received. If the interval between the arrival of any two characters
exceeds this amount, the ReadFile operation is completed and any
buffered data is returned. A value of zero indicates that interval
time-outs are not used.
+// A value of MAXDWORD, combined with zero values for both the
ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members,
specifies that the read operation is to return immediately with the
characters that have already been received, even if no characters have
been received.
+//
+// ReadTotalTimeoutMultiplier
+// Specifies the multiplier, in milliseconds, used to calculate the
total time-out period for read operations. For each read operation, this
value is multiplied by the requested number of bytes to be read.
+// ReadTotalTimeoutConstant
+// Specifies the constant, in milliseconds, used to calculate the
total time-out period for read operations. For each read operation, this
value is added to the product of the ReadTotalTimeoutMultiplier member
and the requested number of bytes.
+// A value of zero for both the ReadTotalTimeoutMultiplier and
ReadTotalTimeoutConstant members indicates that total time-outs are not
used for read operations.
+//
+// WriteTotalTimeoutMultiplier
+// Specifies the multiplier, in milliseconds, used to calculate the
total time-out period for write operations. For each write operation,
this value is multiplied by the number of bytes to be written.
+// WriteTotalTimeoutConstant
+// Specifies the constant, in milliseconds, used to calculate the
total time-out period for write operations. For each write operation,
this value is added to the product of the WriteTotalTimeoutMultiplier
member and the number of bytes to be written.
+// A value of zero for both the WriteTotalTimeoutMultiplier and
WriteTotalTimeoutConstant members indicates that total time-outs are not
used for write operations.
+//
// Remarks
-// If an application sets ReadIntervalTimeout and
ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant
to a value greater than zero and less than MAXDWORD, one of the
following occurs when the ReadFile function is called:
-//
-// If there are any characters in the input buffer, ReadFile returns
immediately with the characters in the buffer.
-// If there are no characters in the input buffer, ReadFile waits
until a character arrives and then returns immediately.
-// If no character arrives within the time specified by
ReadTotalTimeoutConstant, ReadFile times out.
+// If an application sets ReadIntervalTimeout and
ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant
to a value greater than zero and less than MAXDWORD, one of the
following occurs when the ReadFile function is called:
+//
+// If there are any characters in the input buffer, ReadFile returns
immediately with the characters in the buffer.
+// If there are no characters in the input buffer, ReadFile waits
until a character arrives and then returns immediately.
+// If no character arrives within the time specified by
ReadTotalTimeoutConstant, ReadFile times out.
BOOL Rs232SetCommunicationTimeoutsWin32(DWORD ReadIntervalTimeout,
DWORD ReadTotalTimeoutMultiplier, DWORD ReadTotalTimeoutConstant, DWORD
WriteTotalTimeoutMultiplier, DWORD WriteTotalTimeoutConstant)
{
COMMTIMEOUTS ct;
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -197,44 +197,44 @@
WRITE_PORT_UCHAR((PUCHAR)0x43, 0x34); /* binary, mode 2, LSB/MSB, ch
0 */
WRITE_PORT_UCHAR((PUCHAR)0x40, LATCH & 0xff); /* LSB */
WRITE_PORT_UCHAR((PUCHAR)0x40, LATCH >> 8); /* MSB */
-
+
/* Stage 1: Coarse calibration */
-
+
WaitFor8254Wraparound();
-
+
delay_count = 1;
-
+
do {
delay_count <<= 1; /* Next delay count to try */
WaitFor8254Wraparound();
-
+
__StallExecutionProcessor(delay_count); /* Do the delay */
-
+
CurCount = Read8254Timer();
} while (CurCount > LATCH / 2);
-
+
delay_count >>= 1; /* Get bottom value for delay */
-
+
/* Stage 2: Fine calibration */
-
+
calib_bit = delay_count; /* Which bit are we going to test */
-
+
for(i=0;i<PRECISION;i++) {
calib_bit >>= 1; /* Next bit to calibrate */
if(!calib_bit) break; /* If we have done all bits, stop */
-
+
delay_count |= calib_bit; /* Set the bit in delay_count */
-
+
WaitFor8254Wraparound();
-
+
__StallExecutionProcessor(delay_count); /* Do the delay */
-
+
CurCount = Read8254Timer();
if (CurCount <= LATCH / 2) /* If a tick has passed, turn the */
delay_count &= ~calib_bit; /* calibrated bit back off */
}
-
+
/* We're finished: Do the finishing touches */
delay_count /= (MILLISEC / 2); /* Calculate delay_count for 1ms */
}
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hwcpu.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -464,7 +464,7 @@
if (ConfigTable->Signature != MP_CT_SIGNATURE)
return NULL;
- DbgPrint((DPRINT_HWDETECT,
+ DbgPrint((DPRINT_HWDETECT,
"MP Configuration Table at: %x\n",
(ULONG)ConfigTable));
@@ -538,7 +538,7 @@
CpuEntry = (PMP_PROCESSOR_ENTRY)Ptr;
DbgPrint((DPRINT_HWDETECT, "Processor Entry\n"));
- DbgPrint((DPRINT_HWDETECT,
+ DbgPrint((DPRINT_HWDETECT,
"APIC Id %u APIC Version %u Flags %x
Signature %x Feature %x\n",
CpuEntry->LocalApicId,
CpuEntry->LocalApicVersion,
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -168,7 +168,7 @@
return TRUE;
}
-BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector,
PULONGLONG SectorCount, int *FsType)
+BOOL i386DiskGetBootVolume(PULONG DriveNumber, PULONGLONG StartSector,
PULONGLONG SectorCount, int *FsType)
{
PARTITION_TABLE_ENTRY PartitionTableEntry;
UCHAR VolumeType;
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386rtl.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -47,12 +47,12 @@
// interrupt from the AT real-time clock chip which is available
on INT 70;
// because newer BIOSes may have much more precise timers
available, it is
// not possible to use this function accurately for very short
delays unless
- // the precise behavior of the BIOS is known (or found through
testing)
+ // the precise behavior of the BIOS is known (or found through
testing)
while (msec)
{
msec_this = msec;
-
+
if (msec_this > 4000)
{
msec_this = 4000;
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386vid.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -88,7 +88,7 @@
// A search must then be made to find them, FFFFh will also terminate
this
// second list. In some cases, only a "stub" VBE may be present,
supporting
// only AX=4F00h; this case may be assumed if the list of supported
video modes
-// is empty (consisting of a single word of FFFFh)
+// is empty (consisting of a single word of FFFFh)
VOID BiosSetVideoFont8x16(VOID)
{
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcvideo.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -136,7 +136,7 @@
* CH = feature connector bits
* CL = switch settings
* AH destroyed (at least by Tseng ET4000 BIOS v8.00n)
- *
+ *
* Installation check;EGA
*/
Regs.b.ah = 0x12;
@@ -161,7 +161,7 @@
* This function is commonly used to check for the presence of a VGA.
*
* Installation check;VGA
- *
+ *
* Values for display combination code:
* 00h no display
* 01h monochrome adapter w/ monochrome display
@@ -309,15 +309,15 @@
* CL = bottom scan line containing cursor (bits 0-4)
* Return:
* Nothing
- *
+ *
* Specify the starting and ending scan lines to be occupied
* by the hardware cursor in text modes.
*
* AMI 386 BIOS and AST Premier 386 BIOS will lock up the
* system if AL is not equal to the current video mode.
- *
+ *
* Bitfields for cursor start and options:
- *
+ *
* Bit(s) Description
* 7 should be zero
* 6,5 cursor blink
@@ -460,7 +460,7 @@
*
* Note: While VBE 1.1 and higher will zero out all unused bytes
* of the buffer, v1.0 did not, so applications that want to be
- * backward compatible should clear the buffer before calling
+ * backward compatible should clear the buffer before calling
*/
Regs.w.ax = 0x4F01;
Regs.w.cx = Mode;
@@ -563,7 +563,7 @@
* 121h 1600x1200x32K
* 122h 1600x1200x64K
* 81FFh special full-memory access mode
- *
+ *
* Notes: The special mode 81FFh preserves the contents of the video
memory and gives
* access to all of the memory; VESA recommends that the special mode
be a packed-pixel
* mode. For VBE 2.0+, it is required that the VBE implement the
mode, but not place it
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/portio.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -58,8 +58,8 @@
PUCHAR Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; insb\n\t"
- : "=D" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; insb\n\t"
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -71,7 +71,7 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; insw"
- : "=D" (Buffer), "=c" (Count)
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -83,17 +83,17 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; insl"
- : "=D" (Buffer), "=c" (Count)
+ : "=D" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
#undef READ_PORT_UCHAR
-UCHAR
+UCHAR
STDCALL
READ_PORT_UCHAR (PUCHAR Port)
{
UCHAR Value;
-
+
__asm__("inb %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -107,7 +107,7 @@
READ_PORT_USHORT (USHORT* Port)
{
USHORT Value;
-
+
__asm__("inw %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -121,7 +121,7 @@
READ_PORT_ULONG (ULONG* Port)
{
ULONG Value;
-
+
__asm__("inl %w1, %0\n\t"
: "=a" (Value)
: "d" (Port));
@@ -130,14 +130,14 @@
}
#undef WRITE_PORT_BUFFER_UCHAR
-VOID
+VOID
STDCALL
WRITE_PORT_BUFFER_UCHAR (PUCHAR Port,
PUCHAR Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; outsb"
- : "=S" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; outsb"
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -149,7 +149,7 @@
ULONG Count)
{
__asm__ __volatile__ ("cld ; rep ; outsw"
- : "=S" (Buffer), "=c" (Count)
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -160,8 +160,8 @@
ULONG* Buffer,
ULONG Count)
{
- __asm__ __volatile__ ("cld ; rep ; outsl"
- : "=S" (Buffer), "=c" (Count)
+ __asm__ __volatile__ ("cld ; rep ; outsl"
+ : "=S" (Buffer), "=c" (Count)
: "d" (Port),"0" (Buffer),"1" (Count));
}
@@ -172,7 +172,7 @@
UCHAR Value)
{
__asm__("outb %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
@@ -185,7 +185,7 @@
USHORT Value)
{
__asm__("outw %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
@@ -198,7 +198,7 @@
ULONG Value)
{
__asm__("outl %0, %w1\n\t"
- :
+ :
: "a" (Value),
"d" (Port));
SLOW_DOWN_IO;
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/xboxdisk.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -149,7 +149,7 @@
#define IDEWriteDMAStatus(Address, Data) \
(WRITE_PORT_UCHAR((PUCHAR)((Address) + 2), (Data)))
#define IDEWritePRDTable(Address, Data) \
- (WRITE_PORT_ULONG((PULONG)((Address) + 4), (Data)))
+ (WRITE_PORT_ULONG((PULONG)((Address) + 4), (Data)))
/*
* Data block read and write commands
_____
Modified: trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
--- trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/arch/powerpc/mach.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -31,11 +31,11 @@
BOOLEAN AcpiPresent = FALSE;
char BootPath[0x100];
-void le_swap( const void *start_addr_v,
- const void *end_addr_v,
+void le_swap( const void *start_addr_v,
+ const void *end_addr_v,
const void *target_addr_v ) {
- long *start_addr = (long *)ROUND_DOWN((long)start_addr_v,8),
- *end_addr = (long *)ROUND_UP((long)end_addr_v,8),
+ long *start_addr = (long *)ROUND_DOWN((long)start_addr_v,8),
+ *end_addr = (long *)ROUND_UP((long)end_addr_v,8),
*target_addr = (long *)ROUND_DOWN((long)target_addr_v,8);
long tmp;
while( start_addr <= end_addr ) {
@@ -107,7 +107,7 @@
void PpcPutChar( int ch ) {
char buf[3];
- if( ch == 0x0a ) { buf[0] = 0x0d; buf[1] = 0x0a; }
+ if( ch == 0x0a ) { buf[0] = 0x0d; buf[1] = 0x0a; }
else { buf[0] = ch; buf[1] = 0; }
buf[2] = 0;
ofw_print_string( buf );
@@ -167,12 +167,12 @@
return FALSE;
}
-VOID PpcVideoSetPaletteColor( UCHAR Color,
+VOID PpcVideoSetPaletteColor( UCHAR Color,
UCHAR Red, UCHAR Green, UCHAR Blue ) {
printf( "SetPaletteColor(%x,%x,%x,%x)\n", Color, Red, Green, Blue
);
}
-VOID PpcVideoGetPaletteColor( UCHAR Color,
+VOID PpcVideoGetPaletteColor( UCHAR Color,
UCHAR *Red, UCHAR *Green, UCHAR *Blue ) {
printf( "GetPaletteColor(%x)\n", Color);
}
@@ -198,7 +198,7 @@
BiosMemoryMap[0].BaseAddress = 0;
BiosMemoryMap[0].Length = 32 * 1024 * 1024; /* Assume 32 meg for
now */
- printf( "Returning memory map (%dk total)\n",
+ printf( "Returning memory map (%dk total)\n",
(int)BiosMemoryMap[0].Length / 1024 );
return 1;
@@ -226,7 +226,7 @@
return 0;
}
-VOID PpcRTCGetCurrentDateTime( PULONG Hear, PULONG Month, PULONG Day,
+VOID PpcRTCGetCurrentDateTime( PULONG Hear, PULONG Month, PULONG Day,
PULONG Hour, PULONG Minute, PULONG
Second ) {
printf("RTCGeturrentDateTime\n");
}
@@ -256,7 +256,7 @@
MachVtbl.VideoSetTextCursorPosition =
PpcVideoSetTextCursorPosition;
MachVtbl.VideoHideShowTextCursor = PpcVideoHideShowTextCursor;
MachVtbl.VideoPutChar = PpcVideoPutChar;
- MachVtbl.VideoCopyOffScreenBufferToVRAM =
+ MachVtbl.VideoCopyOffScreenBufferToVRAM =
PpcVideoCopyOffScreenBufferToVRAM;
MachVtbl.VideoIsPaletteFixed = PpcVideoIsPaletteFixed;
MachVtbl.VideoSetPaletteColor = PpcVideoSetPaletteColor;
@@ -276,13 +276,13 @@
MachVtbl.HwDetect = PpcHwDetect;
printf( "FreeLDR version [%s]\n", GetFreeLoaderVersionString() );
- BootMain("freeldr-ppc");
+ BootMain("freeldr-ppc");
}
void MachInit(char *CmdLine) {
int len;
printf( "Determining boot device:\n" );
- len = ofw_getprop(chosen_package, "bootpath",
+ len = ofw_getprop(chosen_package, "bootpath",
BootPath, sizeof(BootPath));
printf( "Got %d bytes of path\n", len );
BootPath[len] = 0;
_____
Modified: trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c
--- trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/cache/blocklist.c
2005-05-08 02:15:21 UTC (rev 15107)
@@ -89,7 +89,7 @@
CacheBlock =
(PCACHE_BLOCK)RtlListGetNext((PLIST_ITEM)CacheBlock);
}
}
-
+
return NULL;
}
_____
Modified: trunk/reactos/boot/freeldr/freeldr/cmdline.c
--- trunk/reactos/boot/freeldr/freeldr/cmdline.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/cmdline.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -18,7 +18,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <freeldr.h>
+#include <freeldr.h>
#include <cmdline.h>
#include <rtl.h>
_____
Modified: trunk/reactos/boot/freeldr/freeldr/custom.c
--- trunk/reactos/boot/freeldr/freeldr/custom.c 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/custom.c 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <rtl.h>
#include <ui.h>
_____
Modified: trunk/reactos/boot/freeldr/freeldr/disk/partition.c
--- trunk/reactos/boot/freeldr/freeldr/disk/partition.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/disk/partition.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -109,7 +109,7 @@
// They want an extended partition entry so we will need
// to loop through all the extended partitions on the
disk
// and return the one they want.
-
+
ExtendedPartitionNumber = PartitionNumber - 5;
// Set the initial relative starting sector to 0
_____
Modified: trunk/reactos/boot/freeldr/freeldr/drivemap.c
--- trunk/reactos/boot/freeldr/freeldr/drivemap.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/drivemap.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <drivemap.h>
#include <rtl.h>
@@ -120,7 +120,7 @@
BOOL DriveMapIsValidDriveString(PCHAR DriveString)
{
ULONG Index;
-
+
// Now verify that the user has given us appropriate strings
if ((strlen(DriveString) < 3) ||
((DriveString[0] != 'f') && (DriveString[0] != 'F') &&
(DriveString[0] != 'h') && (DriveString[0] != 'H')) ||
_____
Modified: trunk/reactos/boot/freeldr/freeldr/freeldr.c
--- trunk/reactos/boot/freeldr/freeldr/freeldr.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/freeldr.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
+
#include <freeldr.h>
#include <rtl.h>
#include <arch.h>
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ext2.c
--- trunk/reactos/boot/freeldr/freeldr/fs/ext2.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ext2.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -949,7 +949,7 @@
{
return FALSE;
}
-
+
// Copy the data to their buffer
RtlCopyMemory(InodeBuffer, (PVOID)(FILESYSBUFFER +
(InodeOffsetInBlock * EXT3_INODE_SIZE(Ext2SuperBlock))),
sizeof(EXT2_INODE));
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.c
--- trunk/reactos/boot/freeldr/freeldr/fs/fat.c 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fat.c 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -318,8 +318,8 @@
SectorsPerFat = FatBootSector->SectorsPerFat ?
FatBootSector->SectorsPerFat : Fat32BootSector->SectorsPerFatBig;
TotalSectors = FatBootSector->TotalSectors ?
FatBootSector->TotalSectors : FatBootSector->TotalSectorsBig;
DataSectorCount = TotalSectors -
(FatBootSector->ReservedSectors + (FatBootSector->NumberOfFats *
SectorsPerFat) + RootDirSectors);
-
-//mjl
+
+//mjl
if (FatBootSector->SectorsPerCluster == 0)
CountOfClusters = 0;
else
@@ -861,7 +861,7 @@
}
fat = *((USHORT *) ((PVOID)FILESYSBUFFER +
ThisFatEntOffset));
- if (Cluster & 0x0001)
+ if (Cluster & 0x0001)
fat = fat >> 4; /* Cluster number is ODD */
else
fat = fat & 0x0FFF; /* Cluster number is
EVEN */
@@ -870,7 +870,7 @@
case FAT16:
case FATX16:
-
+
FatOffset = (Cluster * 2);
ThisFatSecNum = ActiveFatSectorStart + (FatOffset /
BytesPerSector);
ThisFatEntOffset = (FatOffset % BytesPerSector);
@@ -1111,7 +1111,7 @@
break;
}
}
-
+
return TRUE;
}
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fat.h
--- trunk/reactos/boot/freeldr/freeldr/fs/fat.h 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fat.h 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -46,7 +46,7 @@
UCHAR BootCodeAndData[448]; // The remainder
of the boot sector
USHORT BootSectorMagic; //
0xAA55
-
+
} PACKED FAT_BOOTSECTOR, *PFAT_BOOTSECTOR;
typedef struct _FAT32_BOOTSECTOR
@@ -82,7 +82,7 @@
UCHAR BootCodeAndData[420]; // The remainder
of the boot sector
USHORT BootSectorMagic; //
0xAA55
-
+
} PACKED FAT32_BOOTSECTOR, *PFAT32_BOOTSECTOR;
typedef struct _FATX_BOOTSECTOR
@@ -93,7 +93,7 @@
USHORT NumberOfFats; /*
Number of FAT tables */
ULONG Unknown; /*
Always 0? */
UCHAR Unused[494]; /*
Actually size should be 4078 (boot block is 4096 bytes) */
-
+
} PACKED FATX_BOOTSECTOR, *PFATX_BOOTSECTOR;
/*
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fs.c
--- trunk/reactos/boot/freeldr/freeldr/fs/fs.c 2005-05-08 02:11:54 UTC
(rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fs.c 2005-05-08 02:15:21 UTC
(rev 15107)
@@ -139,7 +139,7 @@
{
FileName++;
}
-
+
//
// Check file system type and pass off to appropriate handler
//
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c
--- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.c 2005-05-08
02:15:21 UTC (rev 15107)
@@ -110,7 +110,7 @@
{
AttrName = (PWCHAR)((PCHAR)AttrRecord +
AttrRecord->NameOffset);
if (!RtlCompareMemory(AttrName, Name, NameLength << 1))
- {
+ {
/* Found it, fill up the context and return. */
Context->Record = AttrRecord;
if (AttrRecord->IsNonResident)
@@ -125,7 +125,7 @@
if (DataRunOffset != -1)
{
/* Normal run. */
- Context->CacheRunStartLCN =
+ Context->CacheRunStartLCN =
Context->CacheRunLastLCN = DataRunOffset;
}
else
@@ -200,7 +200,7 @@
ULONGLONG CurrentOffset;
ULONGLONG ReadLength;
ULONGLONG AlreadyRead;
-
+
if (!Context->Record->IsNonResident)
{
if (Offset > Context->Record->Resident.ValueLength)
@@ -286,7 +286,7 @@
/*
* Go to next run in the list.
*/
-
+
if (*DataRun == 0)
break;
DataRun = NtfsDecodeRun(DataRun, &DataRunOffset,
&DataRunLength);
@@ -341,7 +341,7 @@
BOOL NtfsReadMftRecord(ULONG MFTIndex, PNTFS_MFT_RECORD Buffer)
{
ULONGLONG BytesRead;
-
+
BytesRead = NtfsReadAttribute(&NtfsMFTContext, MFTIndex *
NtfsMftRecordSize, (PCHAR)Buffer, NtfsMftRecordSize);
if (BytesRead != NtfsMftRecordSize)
return FALSE;
@@ -433,7 +433,7 @@
MmFreeMemory(MftRecord);
return FALSE;
}
-
+
IndexRecord = MmAllocateMemory(NtfsIndexRecordSize);
if (IndexRecord == NULL)
{
@@ -514,7 +514,7 @@
break;
RecordOffset += IndexBlockSize;
}
-
+
if (RecordOffset >= IndexAllocationSize)
{
break;
@@ -533,7 +533,7 @@
while (IndexEntry < IndexEntryEnd &&
!(IndexEntry->Flags & NTFS_INDEX_ENTRY_END))
- {
+ {
if (NtfsCompareFileName(FileName, IndexEntry))
{
DbgPrint((DPRINT_FILESYSTEM, "File found\n"));
@@ -551,7 +551,7 @@
MmFreeMemory(BitmapData);
}
-
+
MmFreeMemory(IndexRecord);
}
else
_____
Modified: trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h
--- trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/fs/ntfs.h 2005-05-08
02:15:21 UTC (rev 15107)
@@ -57,7 +57,7 @@
#define NTFS_FILE_NAME_POSIX 0
#define NTFS_FILE_NAME_WIN32 1
#define NTFS_FILE_NAME_DOS 2
-#define NTFS_FILE_NAME_WIN32_AND_DOS 3
+#define NTFS_FILE_NAME_WIN32_AND_DOS 3
typedef struct
{
_____
Modified: trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
--- trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/freeldr.h
2005-05-08 02:15:21 UTC (rev 15107)
@@ -37,7 +37,7 @@
#define ROUND_UP(N, S) (((N) + (S) - 1) & ~((S) - 1))
#define ROUND_DOWN(N, S) ((N) & ~((S) - 1))
#define Ke386EraseFlags(x) __asm__ __volatile__("pushl $0 ;
popfl\n")
-
+
extern BOOL UserInterfaceUp; /* Tells us if the user interface is
displayed */
VOID BootMain(LPSTR CmdLine);
_____
Modified: trunk/reactos/boot/freeldr/freeldr/include/linux.h
--- trunk/reactos/boot/freeldr/freeldr/include/linux.h 2005-05-08
02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/linux.h 2005-05-08
02:15:21 UTC (rev 15107)
@@ -102,9 +102,9 @@
ULONG Code32Start; // here loaders
can put a different
// start address for 32-bit code.
-
//
+
//
// 0x1000 = default for zImage
-
//
+
//
// 0x100000 = default for big kernel
ULONG RamdiskAddress; // address of
loaded ramdisk image
_____
Modified: trunk/reactos/boot/freeldr/freeldr/include/machine.h
--- trunk/reactos/boot/freeldr/freeldr/include/machine.h
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/machine.h
2005-05-08 02:15:21 UTC (rev 15107)
@@ -39,7 +39,7 @@
VOID (*ConsPutChar)(int Ch);
BOOL (*ConsKbHit)(VOID);
int (*ConsGetCh)(VOID);
-
+
VOID (*VideoClearScreen)(UCHAR Attr);
VIDEODISPLAYMODE (*VideoSetDisplayMode)(char *DisplayMode, BOOL
Init);
VOID (*VideoGetDisplaySize)(PULONG Width, PULONG Height, PULONG
Depth);
_____
Modified: trunk/reactos/boot/freeldr/freeldr/include/multiboot.h
--- trunk/reactos/boot/freeldr/freeldr/include/multiboot.h
2005-05-08 02:11:54 UTC (rev 15106)
+++ trunk/reactos/boot/freeldr/freeldr/include/multiboot.h
2005-05-08 02:15:21 UTC (rev 15107)
@@ -1,16 +1,16 @@
/* multiboot.h - the header for Multiboot */
/* Copyright (C) 1999 Free Software Foundation, Inc.
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
@@ -157,48 +157,48 @@
STDCALL
FrLdrCreateModule(LPSTR ModuleName);
-ULONG_PTR
-STDCALL
-FrLdrLoadModule(FILE *ModuleImage,
- LPSTR ModuleName,
+ULONG_PTR
+STDCALL
+FrLdrLoadModule(FILE *ModuleImage,
+ LPSTR ModuleName,
PULONG ModuleSize);
BOOL
STDCALL
FrLdrLoadKernel(PCHAR szFileName,
INT nPos);
-
+
BOOL
-FrLdrLoadNlsFile(PCHAR szSystemRoot,
+FrLdrLoadNlsFile(PCHAR szSystemRoot,
PCHAR szErrorOut);
-
+
BOOL
-FrLdrLoadDriver(PCHAR szFileName,
+FrLdrLoadDriver(PCHAR szFileName,
INT nPos);
BOOL
LoadSymbolFile(PCHAR szSystemRoot,
PCHAR ModuleName,
INT nPos);
-
+
VOID
-FrLdrLoadBootDrivers(PCHAR szSystemRoot,
+FrLdrLoadBootDrivers(PCHAR szSystemRoot,
INT nPos);
-
+
BOOL
STDCALL
-FrLdrCloseModule(ULONG_PTR ModuleBase,
+FrLdrCloseModule(ULONG_PTR ModuleBase,
ULONG dwModuleSize);
VOID
-STDCALL
+STDCALL
FrLdrStartup(ULONG Magic);
-VOID
-FASTCALL
+VOID
+FASTCALL
FrLdrGetKernelBase(VOID);
-VOID
-FASTCALL
+VOID
+FASTCALL
FrLdrSetupPae(ULONG Magic);
VOID
[truncated at 1000 lines; 1866 more skipped]
Finally, add NDK. Still needs lot of work
Added: branches/new_headers/reactos/include/ndk/
Added: branches/new_headers/reactos/include/ndk/cctypes.h
Added: branches/new_headers/reactos/include/ndk/extypes.h
Added: branches/new_headers/reactos/include/ndk/halfuncs.h
Added: branches/new_headers/reactos/include/ndk/haltypes.h
Added: branches/new_headers/reactos/include/ndk/i386/
Added: branches/new_headers/reactos/include/ndk/i386/floatsave.h
Added: branches/new_headers/reactos/include/ndk/i386/segment.h
Added: branches/new_headers/reactos/include/ndk/inbvfuncs.h
Added: branches/new_headers/reactos/include/ndk/iofuncs.h
Added: branches/new_headers/reactos/include/ndk/iotypes.h
Added: branches/new_headers/reactos/include/ndk/kdfuncs.h
Added: branches/new_headers/reactos/include/ndk/kdtypes.h
Added: branches/new_headers/reactos/include/ndk/kefuncs.h
Added: branches/new_headers/reactos/include/ndk/ketypes.h
Added: branches/new_headers/reactos/include/ndk/ldrfuncs.h
Added: branches/new_headers/reactos/include/ndk/ldrtypes.h
Added: branches/new_headers/reactos/include/ndk/lpctypes.h
Added: branches/new_headers/reactos/include/ndk/mmtypes.h
Added: branches/new_headers/reactos/include/ndk/ntndk.h
Added: branches/new_headers/reactos/include/ndk/obfuncs.h
Added: branches/new_headers/reactos/include/ndk/obtypes.h
Added: branches/new_headers/reactos/include/ndk/potypes.h
Added: branches/new_headers/reactos/include/ndk/psfuncs.h
Added: branches/new_headers/reactos/include/ndk/pstypes.h
Added: branches/new_headers/reactos/include/ndk/rosfuncs.h
Added: branches/new_headers/reactos/include/ndk/rostypes.h
Added: branches/new_headers/reactos/include/ndk/rtlfuncs.h
Added: branches/new_headers/reactos/include/ndk/rtltypes.h
Added: branches/new_headers/reactos/include/ndk/sefuncs.h
Added: branches/new_headers/reactos/include/ndk/setypes.h
Added: branches/new_headers/reactos/include/ndk/umtypes.h
Added: branches/new_headers/reactos/include/ndk/zwfuncs.h
Added: branches/new_headers/reactos/include/ndk/zwtypes.h
_____
Added: branches/new_headers/reactos/include/ndk/cctypes.h
--- branches/new_headers/reactos/include/ndk/cctypes.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/cctypes.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,45 @@
+/* $Id: cctypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/cctypes.h
+ * PURPOSE: Definitions for exported Cache Manager Types not
defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+
+#ifndef _CCTYPES_H
+#define _CCTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern ULONG EXPORTED CcFastMdlReadWait;
+extern ULONG EXPORTED CcFastReadNotPossible;
+extern ULONG EXPORTED CcFastReadWait;
+#else
+extern ULONG IMPORTED CcFastMdlReadWait;
+extern ULONG IMPORTED CcFastReadNotPossible;
+extern ULONG IMPORTED CcFastReadWait;
+#endif
+
+#endif
+
_____
Added: branches/new_headers/reactos/include/ndk/extypes.h
--- branches/new_headers/reactos/include/ndk/extypes.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/extypes.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,63 @@
+/* $Id: extypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/extypes.h
+ * PURPOSE: Definitions for exported Executive Kernel Functions
not defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+
+#ifndef _EXTYPES_H
+#define _EXTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern POBJECT_TYPE EXPORTED ExIoCompletionType;
+#else
+extern POBJECT_TYPE IMPORTED ExIoCompletionType;
+#endif
+
+typedef enum _HARDERROR_RESPONSE_OPTION {
+ OptionAbortRetryIgnore,
+ OptionOk,
+ OptionOkCancel,
+ OptionRetryCancel,
+ OptionYesNo,
+ OptionYesNoCancel,
+ OptionShutdownSystem
+} HARDERROR_RESPONSE_OPTION, *PHARDERROR_RESPONSE_OPTION;
+
+typedef enum _HARDERROR_RESPONSE {
+ ResponseReturnToCaller,
+ ResponseNotHandled,
+ ResponseAbort,
+ ResponseCancel,
+ ResponseIgnore,
+ ResponseNo,
+ ResponseOk,
+ ResponseRetry,
+ ResponseYes
+} HARDERROR_RESPONSE, *PHARDERROR_RESPONSE;
+
+#endif
+
_____
Added: branches/new_headers/reactos/include/ndk/halfuncs.h
--- branches/new_headers/reactos/include/ndk/halfuncs.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/halfuncs.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,181 @@
+/* $Id: halfuncs.h,v 1.1.2.2 2004/10/25 02:57:20 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/halfuncs.h
+ * PURPOSE: Prototypes for exported Hardware Abstraction Layer
Functions not defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _HALFUNCS_H
+#define _HALFUNCS_H
+
+#include "haltypes.h"
+
+BOOLEAN
+STDCALL
+HalAllProcessorsStarted(VOID);
+
+VOID
+STDCALL
+HalAcquireDisplayOwnership(
+ IN PHAL_RESET_DISPLAY_PARAMETERS ResetDisplayParameters
+);
+
+NTSTATUS
+STDCALL
+HalAllocateAdapterChannel(
+ IN PADAPTER_OBJECT AdapterObject,
+ IN PWAIT_CONTEXT_BLOCK WaitContextBlock,
+ IN ULONG NumberOfMapRegisters,
+ IN PDRIVER_CONTROL ExecutionRoutine
+);
+
+BOOLEAN
+STDCALL
+HalBeginSystemInterrupt(
+ ULONG Vector,
+ KIRQL Irql,
+ PKIRQL OldIrql
+);
+
+BOOLEAN
+STDCALL
+HalDisableSystemInterrupt(
+ ULONG Vector,
+ KIRQL Irql
+);
+
+VOID
+STDCALL
+HalDisplayString (
+ IN PCHAR String
+);
+
+BOOLEAN
+STDCALL
+HalEnableSystemInterrupt(
+ ULONG Vector,
+ KIRQL Irql,
+ KINTERRUPT_MODE InterruptMode
+);
+
+VOID
+STDCALL
+HalEndSystemInterrupt(
+ KIRQL Irql,
+ ULONG Unknown2
+);
+
+BOOLEAN
+STDCALL
+HalGetEnvironmentVariable(
+ PCH Name,
+ PCH Value,
+ USHORT ValueLength
+);
+
+VOID
+STDCALL
+HalInitializeProcessor(
+ ULONG ProcessorNumber,
+ PVOID ProcessorStack
+);
+
+BOOLEAN
+STDCALL
+HalInitSystem(
+ ULONG BootPhase,
+ PLOADER_PARAMETER_BLOCK LoaderBlock
+);
+
+BOOLEAN
+STDCALL
+HalQueryDisplayOwnership(VOID);
+
+VOID
+STDCALL
+HalReportResourceUsage(VOID);
+
+VOID
+FASTCALL
+HalRequestSoftwareInterrupt(
+ KIRQL SoftwareInterruptRequested
+);
+
+VOID
+STDCALL
+HalReleaseDisplayOwnership(VOID);
+
+VOID
+STDCALL
+HalReturnToFirmware(
+ ULONG Action
+);
+
+VOID
+STDCALL
+HalRequestIpi(
+ ULONG Unknown
+);
+
+BOOLEAN
+STDCALL
+HalSetEnvironmentVariable(
+ IN PCH Name,
+ IN PCH Value
+);
+
+BOOLEAN
+STDCALL
+HalStartNextProcessor(
+ ULONG Unknown1,
+ ULONG Unknown2
+);
+
+VOID
+STDCALL
+IoAssignDriveLetters(
+ PLOADER_PARAMETER_BLOCK LoaderBlock,
+ PSTRING NtDeviceName,
+ PUCHAR NtSystemPath,
+ PSTRING NtSystemPathString
+);
+
+/* FIXME FIXME FIXME */
+
+#define HAL_PRIVATE_DISPATCH_VERSION 1
+#define HAL_DISPATCH_VERSION 3
+
+typedef struct _HAL_PRIVATE_DISPATCH {
+ ULONG Version;
+} HAL_PRIVATE_DISPATCH, *PHAL_PRIVATE_DISPATCH;
+
+extern HAL_PRIVATE_DISPATCH HalPrivateDispatchTable;
+#define HALPRIVATEDISPATCH HalPrivateDispatchTable
+
+/* The Following Functions are called through the Dispatch Table */
+#define HalQuerySystemInformation
HALDISPATCH.HalQuerySystemInformation
+#define HalIoAssignDriveLetters
HALDISPATCH.HalIoAssignDriveLetters
+#define HalIoReadPartitionTable
HALDISPATCH.HalIoReadPartitionTable
+#define HalIoWritePartitionTable
HALDISPATCH.HalIoWritePartitionTable
+#define HalIoSetPartitionInformation
HALDISPATCH.HalIoSetPartitionInformation
+#endif
_____
Added: branches/new_headers/reactos/include/ndk/haltypes.h
--- branches/new_headers/reactos/include/ndk/haltypes.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/haltypes.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,89 @@
+/* $Id: haltypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/haltypes.h
+ * PURPOSE: Definitions for Hardware Abstraction Layer types
not defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _HALTYPES_H
+#define _HALTYPES_H
+
+#include <reactos/helper.h>
+#include <ddk/ntdddisk.h>
+
+/* HalReturnToFirmware */
+#define FIRMWARE_HALT 1
+#define FIRMWARE_POWERDOWN 2
+#define FIRMWARE_REBOOT 3
+
+/* Boot Flags */
+#define MB_FLAGS_MEM_INFO (0x1)
+#define MB_FLAGS_BOOT_DEVICE (0x2)
+#define MB_FLAGS_COMMAND_LINE (0x4)
+#define MB_FLAGS_MODULE_INFO (0x8)
+#define MB_FLAGS_AOUT_SYMS (0x10)
+#define MB_FLAGS_ELF_SYMS (0x20)
+#define MB_FLAGS_MMAP_INFO (0x40)
+#define MB_FLAGS_DRIVES_INFO (0x80)
+#define MB_FLAGS_CONFIG_TABLE (0x100)
+#define MB_FLAGS_BOOT_LOADER_NAME (0x200)
+#define MB_FLAGS_APM_TABLE (0x400)
+#define MB_FLAGS_GRAPHICS_TABLE (0x800)
+
+typedef struct _LOADER_MODULE {
+ ULONG ModStart;
+ ULONG ModEnd;
+ ULONG String;
+ ULONG Reserved;
+} LOADER_MODULE, *PLOADER_MODULE;
+
+typedef struct _LOADER_PARAMETER_BLOCK {
+ ULONG Flags;
+ ULONG MemLower;
+ ULONG MemHigher;
+ ULONG BootDevice;
+ ULONG CommandLine;
+ ULONG ModsCount;
+ ULONG ModsAddr;
+ UCHAR Syms[12];
+ ULONG MmapLength;
+ ULONG MmapAddr;
+ ULONG DrivesCount;
+ ULONG DrivesAddr;
+ ULONG ConfigTable;
+ ULONG BootLoaderName;
+} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
+
+#ifdef __NTOSKRNL__
+extern ULONG EXPORTED KdComPortInUse;
+#else
+extern ULONG IMPORTED KdComPortInUse;
+#endif
+
+typedef struct _DRIVE_LAYOUT_INFORMATION {
+ DWORD PartitionCount;
+ DWORD Signature;
+ PARTITION_INFORMATION PartitionEntry[1];
+} DRIVE_LAYOUT_INFORMATION;
+#endif
+
_____
Added: branches/new_headers/reactos/include/ndk/i386/floatsave.h
--- branches/new_headers/reactos/include/ndk/i386/floatsave.h
2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/i386/floatsave.h
2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,11 @@
+#ifndef __NAPI_I386_FLOATSAVE_H__
+#define __NAPI_I386_FLOATSAVE_H__
+
+#define FLOAT_SAVE_CONTROL (0xFFFF037F)
+#define FLOAT_SAVE_STATUS (0xFFFF0000)
+#define FLOAT_SAVE_TAG (0xFFFFFFFF)
+#define FLOAT_SAVE_DATA (0xFFFF0000)
+
+#endif /* __NAPI_I386_FLOATSAVE_H__ */
+
+/* EOF */
_____
Added: branches/new_headers/reactos/include/ndk/i386/segment.h
--- branches/new_headers/reactos/include/ndk/i386/segment.h
2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/i386/segment.h
2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,12 @@
+#ifndef _ASM_SEGMENT_H
+#define _ASM_SEGMENT_H
+
+#define KERNEL_CS (0x8)
+#define KERNEL_DS (0x10)
+#define USER_CS (0x18 + 0x3)
+#define USER_DS (0x20 + 0x3)
+#define RESERVED_FOR_TSS (0x28)
+#define PCR_SELECTOR (0x30)
+#define TEB_SELECTOR (0x38 + 0x3)
+
+#endif /* _ASM_SEGMENT_H */
_____
Added: branches/new_headers/reactos/include/ndk/inbvfuncs.h
--- branches/new_headers/reactos/include/ndk/inbvfuncs.h
2005-05-08 01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/inbvfuncs.h
2005-05-08 01:41:18 UTC (rev 15102)
@@ -0,0 +1,118 @@
+/* $Id: inbvfuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/haltypes.h
+ * PURPOSE: Prototypes for Boot Video Driver not defined in
DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _INBVFUNCS_H
+#define _INBVFUNCS_H
+
+VOID
+STDCALL
+InbvAcquireDisplayOwnership(VOID);
+
+BOOLEAN
+STDCALL
+InbvCheckDisplayOwnership(VOID);
+
+BOOLEAN
+STDCALL
+InbvDisplayString(
+ IN PCHAR String
+);
+
+VOID
+STDCALL
+InbvEnableBootDriver(
+ IN BOOLEAN Enable
+);
+
+BOOLEAN
+STDCALL
+InbvEnableDisplayString(
+ IN BOOLEAN Enable
+);
+
+VOID
+STDCALL
+InbvInstallDisplayStringFilter(
+ IN PVOID Unknown
+);
+
+BOOLEAN
+STDCALL
+InbvIsBootDriverInstalled(VOID);
+
+VOID
+STDCALL
+InbvNotifyDisplayOwnershipLost(
+ IN PVOID Callback
+);
+
+BOOLEAN
+STDCALL
+InbvResetDisplay(VOID);
+
+VOID
+STDCALL
+InbvSetScrollRegion(
+ IN ULONG Left,
+ IN ULONG Top,
+ IN ULONG Width,
+ IN ULONG Height
+);
+
+VOID
+STDCALL
+InbvSetTextColor(
+ IN ULONG Color
+);
+
+VOID
+STDCALL
+InbvSolidColorFill(
+ IN ULONG Left,
+ IN ULONG Top,
+ IN ULONG Width,
+ IN ULONG Height,
+ IN ULONG Color
+);
+
+VOID
+STDCALL
+VidCleanUp(VOID);
+
+BOOLEAN
+STDCALL
+VidInitialize(VOID);
+
+BOOLEAN
+STDCALL
+VidResetDisplay(VOID);
+
+BOOLEAN
+STDCALL
+VidIsBootDriverInstalled(VOID);
+
+#endif
_____
Added: branches/new_headers/reactos/include/ndk/iofuncs.h
--- branches/new_headers/reactos/include/ndk/iofuncs.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/iofuncs.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,42 @@
+/*
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/iofuncs.h
+ * PURPOSE: Definitions for exported I/O Manager Functions not
defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+
+#ifndef _IOFUNCS_H
+#define _IOFUNCS_H
+
+NTSTATUS
+STDCALL
+IoSetIoCompletion (
+ IN PVOID IoCompletion,
+ IN PVOID KeyContext,
+ IN PVOID ApcContext,
+ IN NTSTATUS IoStatus,
+ IN ULONG_PTR IoStatusInformation,
+ IN BOOLEAN Quota
+ );
+#endif
+
_____
Added: branches/new_headers/reactos/include/ndk/iotypes.h
--- branches/new_headers/reactos/include/ndk/iotypes.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/iotypes.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,89 @@
+/*
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/iotypes.h
+ * PURPOSE: Definitions for exported I/O Manager Types not
defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+
+#ifndef _IOTYPES_H
+#define _IOTYPES_H
+
+#include <reactos/helper.h>
+
+#ifdef __NTOSKRNL__
+extern POBJECT_TYPE EXPORTED IoAdapterObjectType;
+extern POBJECT_TYPE EXPORTED IoDeviceHandlerObjectType;
+extern POBJECT_TYPE EXPORTED IoDeviceObjectType;
+extern POBJECT_TYPE EXPORTED IoDriverObjectType;
+extern POBJECT_TYPE EXPORTED IoFileObjectType;
+extern ULONG EXPORTED IoReadOperationCount;
+extern ULONGLONG EXPORTED IoReadTransferCount;
+extern ULONG EXPORTED IoWriteOperationCount;
+extern ULONGLONG EXPORTED IoWriteTransferCount;
+extern KSPIN_LOCK EXPORTED IoStatisticsLock;
+#else
+extern POBJECT_TYPE IMPORTED IoAdapterObjectType;
+extern POBJECT_TYPE IMPORTED IoDeviceHandlerObjectType;
+extern POBJECT_TYPE IMPORTED IoDeviceObjectType;
+extern POBJECT_TYPE IMPORTED IoDriverObjectType;
+extern POBJECT_TYPE IMPORTED IoFileObjectType;
+extern ULONG IMPORTED IoReadOperationCount;
+extern ULONGLONG IMPORTED IoReadTransferCount;
+extern ULONG IMPORTED IoWriteOperationCount;
+extern ULONGLONG IMPORTED IoWriteTransferCount;
+extern KSPIN_LOCK IMPORTED IoStatisticsLock;
+#endif
+
+typedef struct _MAILSLOT_CREATE_PARAMETERS {
+ ULONG MailslotQuota;
+ ULONG MaximumMessageSize;
+ LARGE_INTEGER ReadTimeout;
+ BOOLEAN TimeoutSpecified;
+} MAILSLOT_CREATE_PARAMETERS, *PMAILSLOT_CREATE_PARAMETERS;
+
+typedef struct _NAMED_PIPE_CREATE_PARAMETERS {
+ ULONG NamedPipeType;
+ ULONG ReadMode;
+ ULONG CompletionMode;
+ ULONG MaximumInstances;
+ ULONG InboundQuota;
+ ULONG OutboundQuota;
+ LARGE_INTEGER DefaultTimeout;
+ BOOLEAN TimeoutSpecified;
+} NAMED_PIPE_CREATE_PARAMETERS, *PNAMED_PIPE_CREATE_PARAMETERS;
+
+/*
+ * PURPOSE: Special timer associated with each device
+ */
+#define IO_TYPE_DRIVER 4L
+#define IO_TYPE_TIMER 9L
+typedef struct _IO_TIMER {
+ USHORT Type; /* Every IO Object has a
Type */
+ USHORT TimerEnabled; /* Tells us if the Timer
is enabled or not */
+ LIST_ENTRY IoTimerList; /* List of other Timers on the
system */
+ PIO_TIMER_ROUTINE TimerRoutine; /* The associated timer routine
*/
+ PVOID Context; /* Context */
+ PDEVICE_OBJECT DeviceObject; /* Driver that owns this
IO Timer */
+} IO_TIMER, *PIO_TIMER;
+#endif
+
_____
Added: branches/new_headers/reactos/include/ndk/kdfuncs.h
--- branches/new_headers/reactos/include/ndk/kdfuncs.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kdfuncs.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,108 @@
+/* $Id: kdfuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/kdfuncs.h
+ * PURPOSE: Prototypes for Kernel Debugger Functions not
defined in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _KDFUNCS_H
+#define _KDFUNCS_H
+
+#include "kdtypes.h"
+
+BYTE
+STDCALL
+KdPollBreakIn(VOID);
+
+BOOLEAN
+STDCALL
+KdPortInitialize(
+ PKD_PORT_INFORMATION PortInformation,
+ DWORD Unknown1,
+ DWORD Unknown2
+);
+
+BOOLEAN
+STDCALL
+KdPortInitializeEx(
+ PKD_PORT_INFORMATION PortInformation,
+ DWORD Unknown1,
+ DWORD Unknown2
+);
+
+BOOLEAN
+STDCALL
+KdPortGetByte(
+ PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortGetByteEx(
+ PKD_PORT_INFORMATION PortInformation,
+ PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortPollByte(
+ PUCHAR ByteRecieved
+);
+
+BOOLEAN
+STDCALL
+KdPortPollByteEx(
+ PKD_PORT_INFORMATION PortInformation,
+ PUCHAR ByteRecieved
+);
+
+VOID
+STDCALL
+KdPortPutByte(
+ UCHAR ByteToSend
+);
+
+VOID
+STDCALL
+KdPortPutByteEx(
+ PKD_PORT_INFORMATION PortInformation,
+ UCHAR ByteToSend
+);
+
+VOID
+STDCALL
+KdPortRestore(VOID);
+
+VOID
+STDCALL
+KdPortSave (VOID);
+
+BOOLEAN
+STDCALL
+KdPortDisableInterrupts(VOID);
+
+BOOLEAN
+STDCALL
+KdPortEnableInterrupts(VOID);
+
+#endif
_____
Added: branches/new_headers/reactos/include/ndk/kdtypes.h
--- branches/new_headers/reactos/include/ndk/kdtypes.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kdtypes.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,37 @@
+/* $Id: kdtypes.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/kdtypes.h
+ * PURPOSE: Definitions for Kernel Debugger Types not defined
in DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _KDTYPES_H
+#define _KDTYPES_H
+
+typedef struct _KD_PORT_INFORMATION {
+ ULONG ComPort;
+ ULONG BaudRate;
+ ULONG BaseAddress;
+} KD_PORT_INFORMATION, *PKD_PORT_INFORMATION;
+
+#endif
_____
Added: branches/new_headers/reactos/include/ndk/kefuncs.h
--- branches/new_headers/reactos/include/ndk/kefuncs.h 2005-05-08
01:40:13 UTC (rev 15101)
+++ branches/new_headers/reactos/include/ndk/kefuncs.h 2005-05-08
01:41:18 UTC (rev 15102)
@@ -0,0 +1,294 @@
+/* $Id: kefuncs.h,v 1.1.2.1 2004/10/25 01:24:07 ion Exp $
+ *
+ * ReactOS Headers
+ * Copyright (C) 1998-2004 ReactOS Team
+ *
+ * This program is free software; you can redistribute it and/or
modify
+ * it under the terms of the GNU General Public License as published
by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/*
+ * PROJECT: ReactOS Native Headers
+ * FILE: include/ndk/kefuncs.h
+ * PURPOSE: Prototypes for Kernel Functions not defined in
DDK/IFS
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ * UPDATE HISTORY:
+ * Created 06/10/04
+ */
+#ifndef _KEFUNCS_H
+#define _KEFUNCS_H
+
+#include "ketypes.h"
+
+VOID
+STDCALL
+KeInitializeApc(
+ IN PKAPC Apc,
+ IN PKTHREAD Thread,
+ IN KAPC_ENVIRONMENT TargetEnvironment,
+ IN PKKERNEL_ROUTINE KernelRoutine,
+ IN PKRUNDOWN_ROUTINE RundownRoutine OPTIONAL,
+ IN PKNORMAL_ROUTINE NormalRoutine,
+ IN KPROCESSOR_MODE Mode,
+ IN PVOID Context
+);
+
+VOID
+STDCALL
+KeEnterKernelDebugger(VOID);
+
+VOID
+FASTCALL
+KiAcquireSpinLock(
+ PKSPIN_LOCK SpinLock
+);
+
+VOID
+FASTCALL
+KiReleaseSpinLock(
+ PKSPIN_LOCK SpinLock
+);
+
+VOID
+STDCALL
+KiDeliverApc(
+ IN KPROCESSOR_MODE PreviousMode,
+ IN PVOID Reserved,
+ IN PKTRAP_FRAME TrapFrame
+);
+
+VOID
+STDCALL
+KiDispatchInterrupt(VOID);
+
+
+BOOLEAN
+STDCALL
+KeAreApcsDisabled(
+ VOID
+ );
+
+VOID
+STDCALL
+KeFlushQueuedDpcs(
+ VOID
+ );
+
+ULONG
+STDCALL
+KeGetRecommendedSharedDataAlignment(
+ VOID
+ );
+
+ULONG
+STDCALL
+KeQueryRuntimeThread(
+ IN PKTHREAD Thread,
+ OUT PULONG UserTime
+ );
+
+BOOLEAN
+STDCALL
+KeSetKernelStackSwapEnable(
+ IN BOOLEAN Enable
+ );
+
+BOOLEAN
+STDCALL
+KeDeregisterBugCheckReasonCallback(
+ IN PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord
+ );
+
+BOOLEAN
+STDCALL
+KeRegisterBugCheckReasonCallback(
+ IN PKBUGCHECK_REASON_CALLBACK_RECORD CallbackRecord,
+ IN PKBUGCHECK_REASON_CALLBACK_ROUTINE CallbackRoutine,
+ IN KBUGCHECK_CALLBACK_REASON Reason,
+ IN PUCHAR Component
+ );
+
+VOID
+STDCALL
+KeTerminateThread(
+ IN KPRIORITY Increment
+);
+
+BOOLEAN
+STDCALL
+KeIsExecutingDpc(
+ VOID
+);
+
+VOID
+STDCALL
+KeSetEventBoostPriority(
+ IN PKEVENT Event,
+ IN PKTHREAD *Thread OPTIONAL
+);
+
+PVOID
+STDCALL
+KeFindConfigurationEntry(
+ IN PVOID Unknown,
+ IN ULONG Class,
+ IN CONFIGURATION_TYPE Type,
[truncated at 1000 lines; 10962 more skipped]