mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[DRIVERS] Spelling fixes by Josh Soref. CORE-12286
svn path=/trunk/; revision=73226
This commit is contained in:
parent
c2b131e793
commit
5c2f126896
200 changed files with 507 additions and 507 deletions
|
@ -130,7 +130,7 @@ BeepCancel(IN PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Otherwise, remove the packet from the queue and relelase the lock */
|
||||
/* Otherwise, remove the packet from the queue and release the lock */
|
||||
KeRemoveEntryDeviceQueue(&DeviceObject->DeviceQueue,
|
||||
&Irp->Tail.Overlay.DeviceQueueEntry);
|
||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||
|
@ -234,7 +234,7 @@ BeepDeviceControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
else if ((BeepParam->Frequency != 0) && !(BeepParam->Duration))
|
||||
{
|
||||
/* No duration, return imemdiately */
|
||||
/* No duration, return immediately */
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -447,7 +447,7 @@ VidDisplayString(IN PUCHAR String)
|
|||
/* Update current X */
|
||||
VidpCurrentX = VidpScrollRegion[0];
|
||||
|
||||
/* Preseve the current row */
|
||||
/* Preserve the current row */
|
||||
PreserveRow(VidpCurrentY, TopDelta, FALSE);
|
||||
}
|
||||
else if (*String == '\r')
|
||||
|
|
|
@ -385,7 +385,7 @@ VidInitialize(IN BOOLEAN SetMode)
|
|||
TRUE);
|
||||
if (!Result) return FALSE;
|
||||
|
||||
/* Loop trying to find posssible VGA base addresses */
|
||||
/* Loop trying to find possible VGA base addresses */
|
||||
while (TRUE)
|
||||
{
|
||||
/* See if this is I/O Space, which we need to map */
|
||||
|
|
|
@ -515,7 +515,7 @@ RleBitBlt(IN ULONG Left,
|
|||
/* Check if we've gone past the edge */
|
||||
if ((x + RleValue) > (Width + Left))
|
||||
{
|
||||
/* Fixeup the pixel value */
|
||||
/* Fixup the pixel value */
|
||||
RleValue = Left - x + Width;
|
||||
}
|
||||
|
||||
|
@ -526,7 +526,7 @@ RleBitBlt(IN ULONG Left,
|
|||
Color = NewRleValue >> 4;
|
||||
Color2 = NewRleValue & 0xF;
|
||||
|
||||
/* Increase buffer positition */
|
||||
/* Increase buffer position */
|
||||
Buffer++;
|
||||
|
||||
/* Check if we need to do a fill */
|
||||
|
@ -560,7 +560,7 @@ RleBitBlt(IN ULONG Left,
|
|||
/* Check if there is any value at all */
|
||||
if (RleValue)
|
||||
{
|
||||
/* Set the pixel and increase posititon */
|
||||
/* Set the pixel and increase position */
|
||||
SetPixel(x, YDelta, (UCHAR)Color);
|
||||
x++;
|
||||
}
|
||||
|
|
|
@ -237,7 +237,7 @@ KdReceivePacket(
|
|||
/* Calculate the length of the message data */
|
||||
*DataLength = Packet.ByteCount - MessageHeader->Length;
|
||||
|
||||
/* Shall we receive messsage data? */
|
||||
/* Shall we receive message data? */
|
||||
if (MessageData)
|
||||
{
|
||||
/* Set the length of the message data */
|
||||
|
@ -349,7 +349,7 @@ KdSendPacket(
|
|||
/* Send the message header */
|
||||
KdpSendBuffer(MessageHeader->Buffer, MessageHeader->Length);
|
||||
|
||||
/* If we have meesage data, also send it */
|
||||
/* If we have message data, also send it */
|
||||
if (MessageData)
|
||||
{
|
||||
KdpSendBuffer(MessageData->Buffer, MessageData->Length);
|
||||
|
|
|
@ -36,7 +36,7 @@ KdpSendBuffer(
|
|||
* \param Buffer Pointer to a buffer that receives the data.
|
||||
* \param Size Size of data to receive in bytes.
|
||||
* \return KDP_PACKET_RECEIVED if successful.
|
||||
* KDP_PACKET_TIMEOUT if the receice timed out.
|
||||
* KDP_PACKET_TIMEOUT if the receive timed out.
|
||||
*/
|
||||
KDP_STATUS
|
||||
NTAPI
|
||||
|
@ -64,7 +64,7 @@ KdpReceiveBuffer(
|
|||
|
||||
/******************************************************************************
|
||||
* \name KdpReceivePacketLeader
|
||||
* \brief Receives a packet leadr from the KD port.
|
||||
* \brief Receives a packet leader from the KD port.
|
||||
* \param PacketLeader Pointer to an ULONG that receives the packet leader.
|
||||
* \return KDP_PACKET_RECEIVED if successful.
|
||||
* KDP_PACKET_TIMEOUT if the receive timed out.
|
||||
|
|
|
@ -303,7 +303,7 @@ handle_gdb_query(void)
|
|||
|
||||
if (strncmp(gdb_input, "qOffsets", 8) == 0)
|
||||
{
|
||||
/* We load ntoskrnl at 0x80800000 while compiling it at 0x00800000 base adress */
|
||||
/* We load ntoskrnl at 0x80800000 while compiling it at 0x00800000 base address */
|
||||
return send_gdb_packet("TextSeg=80000000");
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ extern LIST_ENTRY* ProcessListHead;
|
|||
extern LIST_ENTRY* ModuleListHead;
|
||||
extern KDP_SEND_HANDLER KdpSendPacketHandler;
|
||||
extern KDP_MANIPULATESTATE_HANDLER KdpManipulateStateHandler;
|
||||
/* Commone ManipulateState handlers */
|
||||
/* Common ManipulateState handlers */
|
||||
extern KDSTATUS ContinueManipulateStateHandler(_Out_ DBGKD_MANIPULATE_STATE64* State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext);
|
||||
extern KDSTATUS SetContextManipulateHandler(_Out_ DBGKD_MANIPULATE_STATE64* State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext);
|
||||
extern PEPROCESS TheIdleProcess;
|
||||
|
|
|
@ -303,7 +303,7 @@ acpi_bus_set_power (
|
|||
* Transition Power
|
||||
* ----------------
|
||||
* On transitions to a high-powered state we first apply power (via
|
||||
* power resources) then evalute _PSx. Conversly for transitions to
|
||||
* power resources) then evalute _PSx. Conversely for transitions to
|
||||
* a lower-powered state.
|
||||
*/
|
||||
if (state < device->power.state) {
|
||||
|
@ -1120,7 +1120,7 @@ acpi_bus_get_flags (
|
|||
if (ACPI_SUCCESS(status))
|
||||
device->flags.power_manageable = 1;
|
||||
|
||||
/* TBD: Peformance management */
|
||||
/* TBD: Performance management */
|
||||
|
||||
return_VALUE(0);
|
||||
}
|
||||
|
|
|
@ -308,12 +308,12 @@ int acpi_device_sleep_wake(struct acpi_device *dev,
|
|||
/*
|
||||
* Try to execute _DSW first.
|
||||
*
|
||||
* Three agruments are needed for the _DSW object:
|
||||
* Three arguments are needed for the _DSW object:
|
||||
* Argument 0: enable/disable the wake capabilities
|
||||
* Argument 1: target system state
|
||||
* Argument 2: target device state
|
||||
* When _DSW object is called to disable the wake capabilities, maybe
|
||||
* the first argument is filled. The values of the other two agruments
|
||||
* the first argument is filled. The values of the other two arguments
|
||||
* are meaningless.
|
||||
*/
|
||||
in_arg[0].Type = ACPI_TYPE_INTEGER;
|
||||
|
|
|
@ -266,7 +266,7 @@ acpi_system_save_state(
|
|||
//}
|
||||
/* disable interrupts
|
||||
* Note that acpi_suspend -- our caller -- will do this once we return.
|
||||
* But, we want it done early, so we don't get any suprises during
|
||||
* But, we want it done early, so we don't get any surprises during
|
||||
* the device suspend sequence.
|
||||
*/
|
||||
//ACPI_DISABLE_IRQS();
|
||||
|
@ -384,7 +384,7 @@ acpi_suspend (
|
|||
status = acpi_system_suspend(state);
|
||||
|
||||
/* Even if we failed to go to sleep, all of the devices are in an suspended
|
||||
* mode. So, we run these unconditionaly to make sure we have a usable system
|
||||
* mode. So, we run these unconditionally to make sure we have a usable system
|
||||
* no matter what.
|
||||
*/
|
||||
AcpiLeaveSleepState(state);
|
||||
|
|
|
@ -116,7 +116,7 @@ acpi_extract_package (
|
|||
tail_offset += sizeof(char*);
|
||||
break;
|
||||
default:
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d]: got number, expecing [%c].\n", i, format_string[i]));
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d]: got number, expecting [%c].\n", i, format_string[i]));
|
||||
return_ACPI_STATUS(AE_BAD_DATA);
|
||||
break;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ acpi_extract_package (
|
|||
tail_offset += sizeof(UINT8*);
|
||||
break;
|
||||
default:
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d] got string/buffer, expecing [%c].\n", i, format_string[i]));
|
||||
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d] got string/buffer, expecting [%c].\n", i, format_string[i]));
|
||||
return_ACPI_STATUS(AE_BAD_DATA);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -404,7 +404,7 @@ Bus_PDO_QueryDeviceCaps(
|
|||
deviceCapabilities->EjectSupported = device->flags.ejectable;
|
||||
deviceCapabilities->HardwareDisabled = !device->status.enabled && !device->status.functional;
|
||||
deviceCapabilities->Removable = device->flags.removable;
|
||||
deviceCapabilities->SurpriseRemovalOK = device->flags.suprise_removal_ok;
|
||||
deviceCapabilities->SurpriseRemovalOK = device->flags.surprise_removal_ok;
|
||||
deviceCapabilities->UniqueID = device->flags.unique_id;
|
||||
deviceCapabilities->NoDisplayInUI = !device->status.show_in_ui;
|
||||
deviceCapabilities->Address = device->pnp.bus_address;
|
||||
|
|
|
@ -975,7 +975,7 @@ CmBattGetBatteryStatus(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
|
|||
/* The battery is discharging but we don't know by how much... this is bad! */
|
||||
if ((BstState & ACPI_BATT_STAT_DISCHARG) &&
|
||||
(CmBattDebug & (CMBATT_ACPI_WARNING | CMBATT_GENERIC_WARNING)))
|
||||
DbgPrint("CmBattGetBatteryStatus: battery rate is unkown when battery is not charging!\n");
|
||||
DbgPrint("CmBattGetBatteryStatus: battery rate is unknown when battery is not charging!\n");
|
||||
}
|
||||
else if (DeviceExtension->State & BATTERY_DISCHARGING)
|
||||
{
|
||||
|
|
|
@ -90,7 +90,7 @@ typedef struct _ACPI_BIF_DATA
|
|||
ULONG BatteryCapacityGranularity1;
|
||||
ULONG BatteryCapacityGranularity2;
|
||||
CHAR ModelNumber[256];
|
||||
CHAR SerialNubmer[256];
|
||||
CHAR SerialNumber[256];
|
||||
CHAR BatteryType[256];
|
||||
CHAR OemInfo[256];
|
||||
} ACPI_BIF_DATA, *PACPI_BIF_DATA;
|
||||
|
|
|
@ -669,7 +669,7 @@ CmBattAddBattery(IN PDRIVER_OBJECT DriverObject,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* Build the FDO extensio, check if we support trip points */
|
||||
/* Build the FDO extension, check if we support trip points */
|
||||
FdoExtension = FdoDeviceObject->DeviceExtension;
|
||||
FdoExtension->FdoType = CmBattBattery;
|
||||
FdoExtension->Started = 0;
|
||||
|
@ -750,7 +750,7 @@ CmBattAddAcAdapter(IN PDRIVER_OBJECT DriverObject,
|
|||
{
|
||||
/* Don't do anything */
|
||||
if (CmBattDebug & 0xC)
|
||||
DbgPrint("CmBatt: Second AC adapter found. Current version of driver only supports 1 aadapter.\n");
|
||||
DbgPrint("CmBatt: Second AC adapter found. Current version of driver only supports 1 adapter.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -154,7 +154,7 @@ struct acpi_device_flags {
|
|||
UINT32 removable:1;
|
||||
UINT32 ejectable:1;
|
||||
UINT32 lockable:1;
|
||||
UINT32 suprise_removal_ok:1;
|
||||
UINT32 surprise_removal_ok:1;
|
||||
UINT32 power_manageable:1;
|
||||
UINT32 performance_manageable:1;
|
||||
UINT32 wake_capable:1;
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
#define PCI_PM_CAP_PME_CLOCK 0x0008 /* PME clock required */
|
||||
#define PCI_PM_CAP_RESERVED 0x0010 /* Reserved field */
|
||||
#define PCI_PM_CAP_DSI 0x0020 /* Device specific initialization */
|
||||
#define PCI_PM_CAP_AUX_POWER 0x01C0 /* Auxilliary power support mask */
|
||||
#define PCI_PM_CAP_AUX_POWER 0x01C0 /* Auxiliary power support mask */
|
||||
#define PCI_PM_CAP_D1 0x0200 /* D1 power state support */
|
||||
#define PCI_PM_CAP_D2 0x0400 /* D2 power state support */
|
||||
#define PCI_PM_CAP_PME 0x0800 /* PME pin supported */
|
||||
|
|
|
@ -501,7 +501,7 @@ PciQueryResources(IN PPCI_PDO_EXTENSION PdoExtension,
|
|||
}
|
||||
}
|
||||
|
||||
/* Return the resouce list */
|
||||
/* Return the resource list */
|
||||
*Buffer = ResourceList;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
@ -610,7 +610,7 @@ PciQueryRequirements(IN PPCI_PDO_EXTENSION PdoExtension,
|
|||
/* Check if the requirements are actually the zero list */
|
||||
if (*RequirementsList == PciZeroIoResourceRequirements)
|
||||
{
|
||||
/* A simple NULL will sufficie for the PnP Manager */
|
||||
/* A simple NULL will suffice for the PnP Manager */
|
||||
*RequirementsList = NULL;
|
||||
DPRINT1("Returning NULL requirements list\n");
|
||||
}
|
||||
|
@ -748,7 +748,7 @@ PciConfigureIdeController(IN PPCI_PDO_EXTENSION PdoExtension,
|
|||
PciData->ProgIf = ProgIf;
|
||||
PdoExtension->ProgIf = NewProgIf;
|
||||
|
||||
/* Clear the first four BARs to reset current BAR setttings */
|
||||
/* Clear the first four BARs to reset current BAR settings */
|
||||
PciData->u.type0.BaseAddresses[0] = 0;
|
||||
PciData->u.type0.BaseAddresses[1] = 0;
|
||||
PciData->u.type0.BaseAddresses[2] = 0;
|
||||
|
@ -996,7 +996,7 @@ PciApplyHacks(IN PPCI_FDO_EXTENSION DeviceExtension,
|
|||
/*
|
||||
* Check for Intel ICH PCI-to-PCI (i82801) bridges (used on the i810,
|
||||
* i820, i840, i845 Chipsets) that have subtractive decode enabled,
|
||||
* and whose hack flags do not specifiy that this support is broken.
|
||||
* and whose hack flags do not specify that this support is broken.
|
||||
*/
|
||||
if ((PdoExtension->HeaderType == PCI_BRIDGE_TYPE) &&
|
||||
(PdoExtension->Dependent.type1.SubtractiveDecode) &&
|
||||
|
|
|
@ -214,7 +214,7 @@ PciAssignSlotResources(IN PUNICODE_STRING RegistryPath,
|
|||
ASSERT(Resources == NULL);
|
||||
}
|
||||
|
||||
/* If assignment succeeed, then we are done */
|
||||
/* If assignment succeed, then we are done */
|
||||
if (NT_SUCCESS(Status)) break;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ PciQueryInterface(IN PPCI_FDO_EXTENSION DeviceExtension,
|
|||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* This interface was not initialized correctly, skip it */
|
||||
DPRINT1("PCI - PciQueryInterface - Contructor %p = %08lx\n",
|
||||
DPRINT1("PCI - PciQueryInterface - Constructor %p = %08lx\n",
|
||||
PciInterface->Constructor, Status);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -695,7 +695,7 @@ PPBridge_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension,
|
|||
* Check for Intel ICH PCI-to-PCI (i82801) bridges (used on the i810,
|
||||
* i820, i840, i845 Chipsets) that don't have subtractive decode broken.
|
||||
* If they do have broken subtractive support, or if they are not ICH bridges,
|
||||
* then check if the bridge supports substractive decode at all.
|
||||
* then check if the bridge supports subtractive decode at all.
|
||||
*/
|
||||
if ((((PdoExtension->VendorId == 0x8086) &&
|
||||
((PdoExtension->DeviceId == 0x2418) ||
|
||||
|
|
|
@ -141,7 +141,7 @@ PciSetPowerManagedDevicePowerState(IN PPCI_PDO_EXTENSION DeviceExtension,
|
|||
/* Does the device support power management at all? */
|
||||
if (!(DeviceExtension->HackFlags & PCI_HACK_NO_PM_CAPS))
|
||||
{
|
||||
/* Get the PM capabailities register */
|
||||
/* Get the PM capabilities register */
|
||||
CapsOffset = PciReadDeviceCapability(DeviceExtension,
|
||||
DeviceExtension->CapabilitiesPtr,
|
||||
PCI_CAPABILITY_ID_POWER_MANAGEMENT,
|
||||
|
|
|
@ -675,7 +675,7 @@ PciIsCriticalDeviceClass(IN UCHAR BaseClass,
|
|||
/* Check for system or bridge devices */
|
||||
if (BaseClass == PCI_CLASS_BASE_SYSTEM_DEV)
|
||||
{
|
||||
/* Interrupt controlers are critical */
|
||||
/* Interrupt controllers are critical */
|
||||
return SubClass == PCI_SUBCLASS_SYS_INTERRUPT_CTLR;
|
||||
}
|
||||
else if (BaseClass == PCI_CLASS_BRIDGE_DEV)
|
||||
|
@ -1052,7 +1052,7 @@ PciClassifyDeviceType(IN PPCI_PDO_EXTENSION PdoExtension)
|
|||
{
|
||||
ASSERT(PdoExtension->ExtensionType == PciPdoExtensionType);
|
||||
|
||||
/* Differenriate between devices and bridges */
|
||||
/* Differentiate between devices and bridges */
|
||||
if (PdoExtension->BaseClass != PCI_CLASS_BRIDGE_DEV) return PciTypeDevice;
|
||||
|
||||
/* The PCI Bus driver handles only CardBus and PCI bridges (plus host) */
|
||||
|
@ -1568,7 +1568,7 @@ PciQueryPowerCapabilities(IN PPCI_PDO_EXTENSION PdoExtension,
|
|||
DevicePowerState = AttachedCaps.DeviceState[CurrentState];
|
||||
NewPowerState = DevicePowerState;
|
||||
|
||||
/* The attachee suports D1, but this PDO does not */
|
||||
/* The attachee supports D1, but this PDO does not */
|
||||
if ((NewPowerState == PowerDeviceD1) &&
|
||||
!(PdoExtension->PowerCapabilities.Support.D1))
|
||||
{
|
||||
|
|
|
@ -640,7 +640,7 @@ CdfsGetFCBForFile(PDEVICE_EXTENSION Vcb,
|
|||
}
|
||||
parentFCB = NULL;
|
||||
|
||||
/* Parse filename and check each path element for existance and access */
|
||||
/* Parse filename and check each path element for existence and access */
|
||||
while (CdfsGetNextPathElement(currentElement) != 0)
|
||||
{
|
||||
/* Skip blank directory levels */
|
||||
|
|
|
@ -591,7 +591,7 @@ Return Value:
|
|||
ASSERT_LOCKED_FCB( Fcb );
|
||||
|
||||
//
|
||||
// Find the entry containg this starting offset.
|
||||
// Find the entry containing this starting offset.
|
||||
//
|
||||
|
||||
McbEntryOffset = CdFindMcbEntry( IrpContext, Fcb, StartingFileOffset );
|
||||
|
@ -698,7 +698,7 @@ Return Value:
|
|||
|
||||
|
||||
//
|
||||
// Local suupport routine
|
||||
// Local support routine
|
||||
//
|
||||
|
||||
ULONG
|
||||
|
|
|
@ -221,7 +221,7 @@ typedef struct _RAW_JOLIET_VD {
|
|||
UCHAR Reserved[8]; // reserved 8 = 0
|
||||
ULONG VolSpaceI; // size of the volume in LBN's Intel
|
||||
ULONG VolSpaceM; // size of the volume in LBN's Motorola
|
||||
UCHAR CharSet[32]; // character set bytes 0 = ASCII, Joliett Seq here
|
||||
UCHAR CharSet[32]; // character set bytes 0 = ASCII, Joliet Seq here
|
||||
USHORT VolSetSizeI; // volume set size Intel
|
||||
USHORT VolSetSizeM; // volume set size Motorola
|
||||
USHORT VolSeqNumI; // volume set sequence number Intel
|
||||
|
|
|
@ -147,7 +147,7 @@ extern LONG CdXAAudioPhileHeader[];
|
|||
// ASSERT_RESOURCE_NOT_MINE( IN PERESOURCE Resource );
|
||||
//
|
||||
// The following macros are used to check whether the current thread
|
||||
// owns the resoures in the given structures.
|
||||
// owns the resource in the given structures.
|
||||
//
|
||||
// ASSERT_EXCLUSIVE_CDDATA
|
||||
//
|
||||
|
|
|
@ -133,7 +133,7 @@ Abstract:
|
|||
5. A fast mutex in the Vcb will protect access to the Fcb table and
|
||||
the open counts in the Vcb. It is also used to modify the reference
|
||||
counts in all Fcbs. This mutex cannot be acquired
|
||||
exclusely and is an end resource.
|
||||
exclusively and is an end resource.
|
||||
|
||||
6. A fast mutex in the Fcb will synchronize access to all Fcb fields
|
||||
which aren't synchronized in some other way. A thread may acquire
|
||||
|
@ -244,7 +244,7 @@ typedef struct _CD_NAME {
|
|||
UNICODE_STRING FileName;
|
||||
|
||||
//
|
||||
// String containging the version number.
|
||||
// String containing the version number.
|
||||
//
|
||||
|
||||
UNICODE_STRING VersionString;
|
||||
|
@ -364,7 +364,7 @@ typedef struct _CD_DATA {
|
|||
// operation.
|
||||
// MaxDelayedCloseCount - Trigger delay close work at this threshold.
|
||||
// MinDelayedCloseCount - Turn off delay close work at this threshold.
|
||||
// DelayedCloseCount - Number of entries on the delayted close queue.
|
||||
// DelayedCloseCount - Number of entries on the delayed close queue.
|
||||
//
|
||||
// CloseItem - Workqueue item used to start FspClose thread.
|
||||
//
|
||||
|
@ -781,7 +781,7 @@ typedef struct _FCB_NONPAGED {
|
|||
|
||||
//
|
||||
// The following field contains a record of special pointers used by
|
||||
// MM and Cache to manipluate section objects. Note that the values
|
||||
// MM and Cache to manipulate section objects. Note that the values
|
||||
// are set outside of the file system. However the file system on an
|
||||
// open/create will set the file object's SectionObject field to
|
||||
// point to this field
|
||||
|
@ -1037,7 +1037,7 @@ typedef CCB *PCCB;
|
|||
|
||||
|
||||
//
|
||||
// The Irp Context record is allocated for every orginating Irp. It is
|
||||
// The Irp Context record is allocated for every originating Irp. It is
|
||||
// created by the Fsd dispatch routines, and deallocated by the CdComplete
|
||||
// request routine
|
||||
//
|
||||
|
@ -1487,7 +1487,7 @@ typedef DIRENT_ENUM_CONTEXT *PDIRENT_ENUM_CONTEXT;
|
|||
|
||||
//
|
||||
// Following structure is used to smooth out the differences in the HSG, ISO
|
||||
// and Joliett directory entries.
|
||||
// and Joliet directory entries.
|
||||
//
|
||||
|
||||
typedef struct _DIRENT {
|
||||
|
|
|
@ -439,7 +439,7 @@ Return Value:
|
|||
//
|
||||
// Since we now must make volumes go away as soon as reasonable after
|
||||
// the last user handles closes, key off of the cleanup count. It is
|
||||
// OK to do this more than neccesary. Since this Fcb could be holding
|
||||
// OK to do this more than necessary. Since this Fcb could be holding
|
||||
// a number of other Fcbs (and thus their references), a simple check
|
||||
// on reference count is not appropriate.
|
||||
//
|
||||
|
|
|
@ -925,7 +925,7 @@ Return Value:
|
|||
if (TryingYellowbookMode2) {
|
||||
|
||||
//
|
||||
// We succesfully got data when we tried switching the trackmode,
|
||||
// We successfully got data when we tried switching the trackmode,
|
||||
// so change the state of the FCB to remember that.
|
||||
//
|
||||
|
||||
|
@ -1552,7 +1552,7 @@ Return Value:
|
|||
ScratchUserBufferOffset += ThisIoRun->DiskByteCount;
|
||||
|
||||
//
|
||||
// Otherwise we need to allocate an auxilary buffer for the next sector.
|
||||
// Otherwise we need to allocate an auxiliary buffer for the next sector.
|
||||
//
|
||||
|
||||
} else {
|
||||
|
@ -2451,7 +2451,7 @@ Return Value:
|
|||
MasterIrp = IrpContext->Irp;
|
||||
|
||||
//
|
||||
// Itterate through the runs, doing everything that can fail.
|
||||
// Iterate through the runs, doing everything that can fail.
|
||||
// We let the cleanup in CdFinishBuffers clean up on error.
|
||||
//
|
||||
|
||||
|
@ -2656,7 +2656,7 @@ Return Value:
|
|||
MasterIrp = IrpContext->Irp;
|
||||
|
||||
//
|
||||
// Itterate through the runs, doing everything that can fail.
|
||||
// Iterate through the runs, doing everything that can fail.
|
||||
// We let the cleanup in CdFinishBuffers clean up on error.
|
||||
//
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ Return Value:
|
|||
//
|
||||
// Here are the rules concerning filling up the buffer:
|
||||
//
|
||||
// 1. The Io system garentees that there will always be
|
||||
// 1. The Io system guarantees that there will always be
|
||||
// enough room for at least one base record.
|
||||
//
|
||||
// 2. If the full first record (including file name) cannot
|
||||
|
@ -733,7 +733,7 @@ Return Value:
|
|||
} finally {
|
||||
|
||||
//
|
||||
// Cleanup our search context - *before* aquiring the FCB mutex exclusive,
|
||||
// Cleanup our search context - *before* acquiring the FCB mutex exclusive,
|
||||
// else can block on threads in cdcreateinternalstream/purge which
|
||||
// hold the FCB but are waiting for all maps in this stream to be released.
|
||||
//
|
||||
|
@ -741,7 +741,7 @@ Return Value:
|
|||
CdCleanupFileContext( IrpContext, &FileContext );
|
||||
|
||||
//
|
||||
// Now we can safely aqure the FCB mutex if we need to.
|
||||
// Now we can safely acquire the FCB mutex if we need to.
|
||||
//
|
||||
|
||||
if (DoCcbUpdate && !NT_ERROR( Status )) {
|
||||
|
@ -1371,7 +1371,7 @@ Return Value:
|
|||
PAGED_CODE();
|
||||
|
||||
//
|
||||
// Loop until we find a match or exaust the directory.
|
||||
// Loop until we find a match or exhaust the directory.
|
||||
//
|
||||
|
||||
while (TRUE) {
|
||||
|
|
|
@ -241,7 +241,7 @@ Arguments:
|
|||
find. This may already point to a dirent so we need to check if
|
||||
we are in the same sector and unmap any buffer as necessary.
|
||||
|
||||
This dirent is left in an indeterminant state if we don't find a dirent.
|
||||
This dirent is left in an indeterminate state if we don't find a dirent.
|
||||
|
||||
Return Value:
|
||||
|
||||
|
@ -825,7 +825,7 @@ CdFindFile (
|
|||
|
||||
Routine Description:
|
||||
|
||||
This routine is called to search a dirctory for a file matching the input
|
||||
This routine is called to search a directory for a file matching the input
|
||||
name. This name has been upcased at this point if this a case-insensitive
|
||||
search. The name has been separated into separate name and version strings.
|
||||
We look for an exact match in the name and only consider the version if
|
||||
|
@ -1000,7 +1000,7 @@ CdFindDirectory (
|
|||
|
||||
Routine Description:
|
||||
|
||||
This routine is called to search a dirctory for a directory matching the input
|
||||
This routine is called to search a directory for a directory matching the input
|
||||
name. This name has been upcased at this point if this a case-insensitive
|
||||
search. We look for an exact match in the name and do not look for shortname
|
||||
equivalents.
|
||||
|
@ -1283,7 +1283,7 @@ Routine Description:
|
|||
|
||||
This routine is called to walk through the directory until we find the
|
||||
first possible dirent for file. We are positioned at some point described
|
||||
by the FileContext. We will walk through any remaing dirents for the
|
||||
by the FileContext. We will walk through any remaining dirents for the
|
||||
current file until we find the first dirent for some subsequent file.
|
||||
|
||||
We can be called when we have found just one dirent for a file or all
|
||||
|
|
|
@ -867,7 +867,7 @@ Return Value:
|
|||
// Since we're always last in the mount order, we won't be preventing
|
||||
// any other FS from trying to mount the data track. However if the
|
||||
// data track was at the start of the disc, then we abort, to avoid
|
||||
// having to filter it from our synthesised directory listing later. We
|
||||
// having to filter it from our synthesized directory listing later. We
|
||||
// already filtered off any data track at the end.
|
||||
//
|
||||
|
||||
|
@ -1869,7 +1869,7 @@ Return Value:
|
|||
CdReleaseVcb( IrpContext, Vcb );
|
||||
|
||||
//
|
||||
// Send notification that the volume is avaliable.
|
||||
// Send notification that the volume is available.
|
||||
//
|
||||
|
||||
if (NT_SUCCESS( Status )) {
|
||||
|
@ -2295,7 +2295,7 @@ Return Value:
|
|||
|
||||
Status = ObReferenceObjectByHandle( Handle,
|
||||
0,
|
||||
IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibily with exported kernel data */
|
||||
IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibility with exported kernel data */
|
||||
KernelMode,
|
||||
(PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */
|
||||
NULL );
|
||||
|
@ -2554,7 +2554,7 @@ Return Value:
|
|||
// and still have the disk work. As this form of error worked in NT 4.0, and
|
||||
// since these disks really do exist, I don't want to change them.
|
||||
//
|
||||
// If we wished to support all such media (we don't), it would be neccesary
|
||||
// If we wished to support all such media (we don't), it would be necessary
|
||||
// to clear this flag on finding ISO or HSG descriptors below.
|
||||
//
|
||||
|
||||
|
|
|
@ -568,7 +568,7 @@ Return Value:
|
|||
// into the name in order to reduce the chance of name conflicts. We will use
|
||||
// a tilde character followed by a character representation of the dirent offset.
|
||||
// This will be the hexadecimal representation of the dirent offset in the directory.
|
||||
// It is actuall this offset divided by 32 since we don't need the full
|
||||
// It is actually this offset divided by 32 since we don't need the full
|
||||
// granularity.
|
||||
//
|
||||
|
||||
|
@ -650,7 +650,7 @@ Return Value:
|
|||
|
||||
//
|
||||
// Figure out the maximum number of characters we can copy of the base
|
||||
// name. We subract the number of characters in the dirent string from 8.
|
||||
// name. We subtract the number of characters in the dirent string from 8.
|
||||
// We will copy this many characters or stop when we reach a '.' character
|
||||
// or a '~' character in the name.
|
||||
//
|
||||
|
@ -987,8 +987,8 @@ Return Value:
|
|||
|
||||
COMPARISON - returns
|
||||
|
||||
LessThan if NameA < NameB lexicalgraphically,
|
||||
GreaterThan if NameA > NameB lexicalgraphically,
|
||||
LessThan if NameA < NameB lexicographically,
|
||||
GreaterThan if NameA > NameB lexicographically,
|
||||
EqualTo if NameA is equal to NameB
|
||||
|
||||
--*/
|
||||
|
@ -1016,7 +1016,7 @@ Return Value:
|
|||
|
||||
//
|
||||
// Loop through looking at all of the characters in both strings
|
||||
// testing for equalilty, less than, and greater than
|
||||
// testing for equality, less than, and greater than
|
||||
//
|
||||
|
||||
i = RtlCompareMemory( NameA->Buffer, NameB->Buffer, MinLength );
|
||||
|
|
|
@ -22,7 +22,7 @@ Abstract:
|
|||
of the tree. The children of a given directory will be grouped together.
|
||||
|
||||
The directories are assigned ordinal numbers based on their position in
|
||||
the path table. The root dirctory is assigned ordinal value 1.
|
||||
the path table. The root directory is assigned ordinal value 1.
|
||||
|
||||
Path table sectors:
|
||||
|
||||
|
@ -493,7 +493,7 @@ Routine Description:
|
|||
|
||||
This routine is called to map (or allocate and copy) the next
|
||||
data block in the path table. We check if the next block will
|
||||
span a view boundary and allocate an auxilary buffer in that case.
|
||||
span a view boundary and allocate an auxiliary buffer in that case.
|
||||
|
||||
Arguments:
|
||||
|
||||
|
@ -521,7 +521,7 @@ Return Value:
|
|||
|
||||
//
|
||||
// Map the new block and set the enumeration context to this
|
||||
// point. Allocate an auxilary buffer if necessary.
|
||||
// point. Allocate an auxiliary buffer if necessary.
|
||||
//
|
||||
|
||||
CurrentLength = 2 * SECTOR_SIZE;
|
||||
|
@ -564,7 +564,7 @@ Return Value:
|
|||
(FlagOn( ((ULONG) BaseOffset), VACB_MAPPING_MASK ) == LAST_VACB_SECTOR_OFFSET )) {
|
||||
|
||||
//
|
||||
// Map each sector individually and store into an auxilary
|
||||
// Map each sector individually and store into an auxiliary
|
||||
// buffer.
|
||||
//
|
||||
|
||||
|
@ -605,7 +605,7 @@ Return Value:
|
|||
|
||||
//
|
||||
// There is a slight chance that we have allocated an
|
||||
// auxilary buffer on the previous sector.
|
||||
// auxiliary buffer on the previous sector.
|
||||
//
|
||||
|
||||
if (PathContext->AllocatedData) {
|
||||
|
@ -789,7 +789,7 @@ Routine Description:
|
|||
path entry. If this is a Joliet name then we will make sure we have
|
||||
an allocated buffer and need to convert from big endian to little
|
||||
endian. We also correctly update the case name. If this operation is ignore
|
||||
case then we need an auxilary buffer for the name.
|
||||
case then we need an auxiliary buffer for the name.
|
||||
|
||||
For an Ansi disk we can use the name from the disk for the exact case. We only
|
||||
need to allocate a buffer for the ignore case name. The on-disk representation of
|
||||
|
|
|
@ -342,7 +342,7 @@ Return Value:
|
|||
// Since we were able to lock the volume, we are guaranteed to
|
||||
// move this volume into dismount state and disconnect it from
|
||||
// the underlying storage stack. The force on our part is actually
|
||||
// unnecesary, though complete.
|
||||
// unnecessary, though complete.
|
||||
//
|
||||
// What is not strictly guaranteed, though, is that the closes
|
||||
// for the metadata streams take effect synchronously underneath
|
||||
|
@ -371,7 +371,7 @@ Return Value:
|
|||
//
|
||||
// The reason this is the case is that handles/fileobjects place a reference
|
||||
// on the device objects they overly. In the filesystem case, these references
|
||||
// are on our target devices. PnP correcly thinks that if references remain
|
||||
// are on our target devices. PnP correctly thinks that if references remain
|
||||
// on the device objects in the stack that someone has a handle, and that this
|
||||
// counts as a reason to not succeed the query - even though every interrogated
|
||||
// driver thinks that it is OK.
|
||||
|
@ -395,7 +395,7 @@ Return Value:
|
|||
CdReleaseCdData( IrpContext );
|
||||
|
||||
//
|
||||
// Cleanup our IrpContext and complete the IRP if neccesary.
|
||||
// Cleanup our IrpContext and complete the IRP if necessary.
|
||||
//
|
||||
|
||||
CdCompleteRequest( IrpContext, Irp, Status );
|
||||
|
@ -446,7 +446,7 @@ Return Value:
|
|||
// (the only case in which this will be the first warning).
|
||||
//
|
||||
// Note that it is entirely unlikely that we will be around
|
||||
// for a REMOVE in the first two cases, as we try to intiate
|
||||
// for a REMOVE in the first two cases, as we try to initiate
|
||||
// dismount.
|
||||
//
|
||||
|
||||
|
@ -527,7 +527,7 @@ Return Value:
|
|||
//
|
||||
// Now make our dismount happen. This may not vaporize the
|
||||
// Vcb, of course, since there could be any number of handles
|
||||
// outstanding if we were not preceeded by a QUERY.
|
||||
// outstanding if we were not preceded by a QUERY.
|
||||
//
|
||||
// PnP will take care of disconnecting this stack if we
|
||||
// couldn't get off of it immediately.
|
||||
|
|
|
@ -109,7 +109,7 @@ Return Value:
|
|||
}
|
||||
|
||||
//
|
||||
// If not acquired and the user didn't specifiy IgnoreWait then
|
||||
// If not acquired and the user didn't specify IgnoreWait then
|
||||
// raise CANT_WAIT.
|
||||
//
|
||||
|
||||
|
|
|
@ -368,7 +368,7 @@ Return Value:
|
|||
CdUpdateVcbCondition( Vcb, VcbMountInProgress);
|
||||
|
||||
//
|
||||
// Refererence the Vcb for two reasons. The first is a reference
|
||||
// Reference the Vcb for two reasons. The first is a reference
|
||||
// that prevents the Vcb from going away on the last close unless
|
||||
// dismount has already occurred. The second is to make sure
|
||||
// we don't go into the dismount path on any error during mount
|
||||
|
@ -495,7 +495,7 @@ Return Value:
|
|||
if (ARGUMENT_PRESENT( RawIsoVd )) {
|
||||
|
||||
//
|
||||
// Create the path table Fcb and refererence it and the Vcb.
|
||||
// Create the path table Fcb and reference it and the Vcb.
|
||||
//
|
||||
|
||||
CdLockVcb( IrpContext, Vcb );
|
||||
|
@ -686,7 +686,7 @@ Return Value:
|
|||
ULONG RootDirectorySize;
|
||||
|
||||
//
|
||||
// Create the path table Fcb and refererence it and the Vcb.
|
||||
// Create the path table Fcb and reference it and the Vcb.
|
||||
//
|
||||
|
||||
CdLockVcb( IrpContext, Vcb );
|
||||
|
@ -862,7 +862,7 @@ Routine Description:
|
|||
|
||||
This routine is called to delete a Vcb which failed mount or has been
|
||||
dismounted. The dismount code should have already removed all of the
|
||||
open Fcb's. We do nothing here but clean up other auxilary structures.
|
||||
open Fcb's. We do nothing here but clean up other auxiliary structures.
|
||||
|
||||
Arguments:
|
||||
|
||||
|
@ -1694,7 +1694,7 @@ Routine Description:
|
|||
|
||||
This routine is called to cleanup and possibly deallocate the Irp Context.
|
||||
If the request is being posted or this Irp Context is possibly on the
|
||||
stack then we only cleanup any auxilary structures.
|
||||
stack then we only cleanup any auxiliary structures.
|
||||
|
||||
Arguments:
|
||||
|
||||
|
@ -2361,12 +2361,12 @@ CdDeleteFcb (
|
|||
Routine Description:
|
||||
|
||||
This routine is called to cleanup and deallocate an Fcb. We know there
|
||||
are no references remaining. We cleanup any auxilary structures and
|
||||
are no references remaining. We cleanup any auxiliary structures and
|
||||
deallocate this Fcb.
|
||||
|
||||
Arguments:
|
||||
|
||||
Fcb - This is the Fcb to deallcoate.
|
||||
Fcb - This is the Fcb to deallocate.
|
||||
|
||||
Return Value:
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@ Return Value:
|
|||
//
|
||||
// We had some trouble trying to perform the verify or raised
|
||||
// an error ourselves. So we'll abort the I/O request with
|
||||
// the error status that we get back from the execption code.
|
||||
// the error status that we get back from the exception code.
|
||||
//
|
||||
|
||||
Status = CdProcessException( IrpContext, Irp, GetExceptionCode() );
|
||||
|
@ -550,7 +550,7 @@ Return Value:
|
|||
}
|
||||
|
||||
//
|
||||
// Raise the verify / error if neccessary.
|
||||
// Raise the verify / error if necessary.
|
||||
//
|
||||
|
||||
if (ForceVerify || !NT_SUCCESS( Status)) {
|
||||
|
|
|
@ -222,7 +222,7 @@ Arguments:
|
|||
is to be returned
|
||||
|
||||
Length - Supplies the length of the buffer in byte. This variable
|
||||
upon return recieves the remaining bytes free in the buffer
|
||||
upon return receives the remaining bytes free in the buffer
|
||||
|
||||
Return Value:
|
||||
|
||||
|
@ -312,7 +312,7 @@ Arguments:
|
|||
is to be returned
|
||||
|
||||
Length - Supplies the length of the buffer in byte. This variable
|
||||
upon return recieves the remaining bytes free in the buffer
|
||||
upon return receives the remaining bytes free in the buffer
|
||||
|
||||
Return Value:
|
||||
|
||||
|
@ -373,7 +373,7 @@ Arguments:
|
|||
is to be returned
|
||||
|
||||
Length - Supplies the length of the buffer in byte. This variable
|
||||
upon return recieves the remaining bytes free in the buffer
|
||||
upon return receives the remaining bytes free in the buffer
|
||||
|
||||
Return Value:
|
||||
|
||||
|
@ -431,7 +431,7 @@ Arguments:
|
|||
is to be returned
|
||||
|
||||
Length - Supplies the length of the buffer in byte. This variable
|
||||
upon return recieves the remaining bytes free in the buffer
|
||||
upon return receives the remaining bytes free in the buffer
|
||||
|
||||
Return Value:
|
||||
|
||||
|
|
|
@ -1003,13 +1003,13 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
|
|||
IN PIRP Irp
|
||||
@@ -2294,9 +2295,9 @@
|
||||
|
||||
Status = ObReferenceObjectByHandle( Handle,
|
||||
0,
|
||||
- *IoFileObjectType,
|
||||
+ IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibily with exported kernel data */
|
||||
KernelMode,
|
||||
- &FileToMarkBad,
|
||||
+ (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */
|
||||
Status = ObReferenceObjectByHandle( Handle,
|
||||
0,
|
||||
- *IoFileObjectType,
|
||||
+ IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibility with exported kernel data */
|
||||
KernelMode,
|
||||
- &FileToMarkBad,
|
||||
+ (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */
|
||||
NULL );
|
||||
|
||||
if (!NT_SUCCESS(Status)) {
|
||||
|
|
|
@ -107,7 +107,7 @@ CdPrePostIrp (
|
|||
|
||||
Routine Description:
|
||||
|
||||
This routine performs any neccessary work before STATUS_PENDING is
|
||||
This routine performs any necessary work before STATUS_PENDING is
|
||||
returned with the Fsd thread. This routine is called within the
|
||||
filesystem and by the oplock package.
|
||||
|
||||
|
@ -315,7 +315,7 @@ CdAddToWorkque (
|
|||
|
||||
Routine Description:
|
||||
|
||||
This routine is called to acually store the posted Irp to the Fsp
|
||||
This routine is called to actually store the posted Irp to the Fsp
|
||||
workque.
|
||||
|
||||
Arguments:
|
||||
|
|
|
@ -611,7 +611,7 @@ VfatCreateFile(
|
|||
return STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
|
||||
/* Check for illegal characters and illegale dot sequences in the file name */
|
||||
/* Check for illegal characters and illegal dot sequences in the file name */
|
||||
PathNameU = FileObject->FileName;
|
||||
c = PathNameU.Buffer + PathNameU.Length / sizeof(WCHAR);
|
||||
last = c - 1;
|
||||
|
|
|
@ -354,7 +354,7 @@ FATGetNextDirEntry(
|
|||
|
||||
index = longNameEntry->id & 0x3f; // Note: it can be 0 for corrupted FS
|
||||
|
||||
/* Make sure index is valid and we have enaugh space in buffer
|
||||
/* Make sure index is valid and we have enough space in buffer
|
||||
(we count one char for \0) */
|
||||
if (index > 0 &&
|
||||
index * 13 < DirContext->LongNameU.MaximumLength / sizeof(WCHAR))
|
||||
|
|
|
@ -145,7 +145,7 @@ vfatRenameEntry(
|
|||
|
||||
/*
|
||||
* try to find contiguous entries frees in directory,
|
||||
* extend a directory if is neccesary
|
||||
* extend a directory if is necessary
|
||||
*/
|
||||
BOOLEAN
|
||||
vfatFindDirSpace(
|
||||
|
|
|
@ -67,7 +67,7 @@ VfatHasFileSystem(
|
|||
FALSE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("VfatBlockDeviceIoControl faild (%x)\n", Status);
|
||||
DPRINT("VfatBlockDeviceIoControl failed (%x)\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ VfatHasFileSystem(
|
|||
FALSE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("VfatBlockDeviceIoControl faild (%x)\n", Status);
|
||||
DPRINT("VfatBlockDeviceIoControl failed (%x)\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -674,7 +674,7 @@ VfatVerify(
|
|||
{
|
||||
/*
|
||||
* FIXME:
|
||||
* Preformated floppy disks have very often a serial number of 0000:0000.
|
||||
* Preformatted floppy disks have very often a serial number of 0000:0000.
|
||||
* We should calculate a crc sum over the sectors from the root directory as secondary volume number.
|
||||
* Each write to the root directory must update this crc sum.
|
||||
*/
|
||||
|
|
|
@ -423,7 +423,7 @@ typedef struct _VFATFCB
|
|||
FILE_LOCK FileLock;
|
||||
|
||||
/*
|
||||
* Optimalization: caching of last read/write cluster+offset pair. Can't
|
||||
* Optimization: caching of last read/write cluster+offset pair. Can't
|
||||
* be in VFATCCB because it must be reset everytime the allocated clusters
|
||||
* change.
|
||||
*/
|
||||
|
|
|
@ -61,7 +61,7 @@ FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject,
|
|||
/* Make sure that we haven't already loaded the FS */
|
||||
if (DeviceExtension->State != Loaded)
|
||||
{
|
||||
/* Unregiser us, and set us as loaded */
|
||||
/* Unregister us, and set us as loaded */
|
||||
IoUnregisterFileSystem(DeviceObject);
|
||||
DeviceExtension->State = Loaded;
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ FsRecRegisterFs(IN PDRIVER_OBJECT DriverObject,
|
|||
0);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* We suceeded, close the handle */
|
||||
/* We succeeded, close the handle */
|
||||
ZwClose(FileHandle);
|
||||
}
|
||||
else if (Status != STATUS_OBJECT_NAME_NOT_FOUND)
|
||||
|
|
|
@ -12,7 +12,7 @@ struct journal_params {
|
|||
// Block number of the block containing the first journal node.
|
||||
UINT32 jp_journal_1st_block; /* where does journal start from on its device */
|
||||
|
||||
// Journal device number (?? for if the journal is on a seperate drive ??)
|
||||
// Journal device number (?? for if the journal is on a separate drive ??)
|
||||
UINT32 jp_journal_dev; /* journal device st_rdev */
|
||||
|
||||
// Original journal size. (Needed when using partition on systems w/ different default journal sizes).
|
||||
|
|
|
@ -140,7 +140,7 @@ MuppIsDfsEnabled(VOID)
|
|||
KeyName.MaximumLength = sizeof(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Mup");
|
||||
|
||||
/* Simply query registry to know whether we have to disable DFS.
|
||||
* Unless explicitely stated in registry, we will try to enable DFS.
|
||||
* Unless explicitly stated in registry, we will try to enable DFS.
|
||||
*/
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&KeyName,
|
||||
|
@ -1371,7 +1371,7 @@ MupRerouteOpen(PFILE_OBJECT FileObject,
|
|||
RtlMoveMemory(FullPath, UncProvider->DeviceName.Buffer, UncProvider->DeviceName.Length);
|
||||
RtlMoveMemory((PWSTR)((ULONG_PTR)FullPath + UncProvider->DeviceName.Length), FileObject->FileName.Buffer, FileObject->FileName.Length);
|
||||
|
||||
/* And redo the path in the file oject */
|
||||
/* And redo the path in the file object */
|
||||
ExFreePoolWithTag(FileObject->FileName.Buffer, 0);
|
||||
FileObject->FileName.Buffer = FullPath;
|
||||
FileObject->FileName.MaximumLength = TotalLength;
|
||||
|
@ -1764,7 +1764,7 @@ QueryPathCompletionRoutine(PDEVICE_OBJECT DeviceObject,
|
|||
}
|
||||
|
||||
/* Otherwise, if the prefix was in the prefix table, just drop it:
|
||||
* we have a provider which superseeds the accepted prefix, so leave
|
||||
* we have a provider which supersedes the accepted prefix, so leave
|
||||
* room for the new prefix/provider
|
||||
*/
|
||||
ExAcquireResourceExclusiveLite(&MupPrefixTableLock, TRUE);
|
||||
|
@ -1856,7 +1856,7 @@ QueryPathCompletionRoutine(PDEVICE_OBJECT DeviceObject,
|
|||
TableStatus = MupOrderedErrorList[0];
|
||||
LatestPos = 0;
|
||||
|
||||
/* Otherwise, time to compare statuteses, between the latest failed
|
||||
/* Otherwise, time to compare statuses, between the latest failed
|
||||
* and the current failure.
|
||||
* We have an order table of failed status: the deeper you go in the
|
||||
* table, the more the error is critical.
|
||||
|
|
|
@ -271,7 +271,7 @@ NtfsOpenFile(PDEVICE_EXTENSION DeviceExt,
|
|||
}
|
||||
}
|
||||
|
||||
//FIXME: Get cannonical path name (remove .'s, ..'s and extra separators)
|
||||
//FIXME: Get canonical path name (remove .'s, ..'s and extra separators)
|
||||
|
||||
DPRINT("PathName to open: %S\n", FileName);
|
||||
|
||||
|
|
|
@ -628,7 +628,7 @@ NtfsGetFCBForFile(PNTFS_VCB Vcb,
|
|||
|
||||
parentFCB = NULL;
|
||||
|
||||
/* Parse filename and check each path element for existance and access */
|
||||
/* Parse filename and check each path element for existence and access */
|
||||
while (NtfsGetNextPathElement(currentElement) != 0)
|
||||
{
|
||||
/* Skip blank directory levels */
|
||||
|
|
|
@ -241,7 +241,7 @@ typedef struct _FILE_RECORD_HEADER
|
|||
ULONG BytesAllocated; /* Allocated size of the FILE record */
|
||||
ULONGLONG BaseFileRecord; /* File reference to the base FILE record */
|
||||
USHORT NextAttributeNumber; /* Next Attribute Id */
|
||||
USHORT Pading; /* Align to 4 UCHAR boundary (XP) */
|
||||
USHORT Padding; /* Align to 4 UCHAR boundary (XP) */
|
||||
ULONG MFTRecordNumber; /* Number of this MFT Record (XP) */
|
||||
} FILE_RECORD_HEADER, *PFILE_RECORD_HEADER;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ static
|
|||
NTSTATUS
|
||||
FltpAttachDeviceObject(
|
||||
_In_ PDEVICE_OBJECT SourceDevice,
|
||||
_In_ PDEVICE_OBJECT Targetevice,
|
||||
_In_ PDEVICE_OBJECT TargetDevice,
|
||||
_Out_ PDEVICE_OBJECT *AttachedToDeviceObject
|
||||
);
|
||||
|
||||
|
@ -1752,7 +1752,7 @@ FltpEnumerateFileSystemVolumes(_In_ PDEVICE_OBJECT DeviceObject)
|
|||
}
|
||||
|
||||
/*
|
||||
* Try to get the storage stack (disk) device object accociated with
|
||||
* Try to get the storage stack (disk) device object associated with
|
||||
* this file system device object. Ignore the device if we don't have one
|
||||
*/
|
||||
Status = IoGetDiskDeviceObject(DeviceList[i],
|
||||
|
@ -1905,7 +1905,7 @@ FltpAttachToFileSystemDevice(_In_ PDEVICE_OBJECT DeviceObject,
|
|||
&NewDeviceObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Failed to create a DO for attatching to a FS : 0x%X\n", Status);
|
||||
DPRINT1("Failed to create a DO for attaching to a FS : 0x%X\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -2172,7 +2172,7 @@ SetupDispatchAndCallbacksTables(_In_ PDRIVER_OBJECT DriverObject)
|
|||
DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = FltpFsControl;
|
||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = FltpDeviceControl;
|
||||
|
||||
/* The FastIo diapatch table is stored in the pool along with a tag */
|
||||
/* The FastIo dispatch table is stored in the pool along with a tag */
|
||||
FastIoDispatch = ExAllocatePoolWithTag(NonPagedPool, sizeof(FAST_IO_DISPATCH), FM_TAG_DISPATCH_TABLE);
|
||||
if (FastIoDispatch == NULL) return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ typedef struct _FLTMGR_DEVICE_EXTENSION
|
|||
/* The file system we're attached to */
|
||||
PDEVICE_OBJECT AttachedToDeviceObject;
|
||||
|
||||
/* The storage stack(disk) accociated with the file system device object we're attached to */
|
||||
/* The storage stack(disk) associated with the file system device object we're attached to */
|
||||
PDEVICE_OBJECT StorageStackDeviceObject;
|
||||
|
||||
/* Either physical drive for volume device objects otherwise
|
||||
|
|
|
@ -1349,7 +1349,7 @@ QueryVolumeName(IN HANDLE RootDirectory,
|
|||
return STATUS_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
||||
/* Copy symoblic name */
|
||||
/* Copy symbolic name */
|
||||
SymbolicName->Length = ReparseDataBuffer->MountPointReparseBuffer.SubstituteNameLength;
|
||||
RtlCopyMemory(SymbolicName->Buffer,
|
||||
(PWSTR)((ULONG_PTR)ReparseDataBuffer->MountPointReparseBuffer.PathBuffer +
|
||||
|
@ -1699,7 +1699,7 @@ CreateRemoteDatabaseWorker(IN PDEVICE_OBJECT DeviceObject,
|
|||
goto Cleanup;
|
||||
}
|
||||
|
||||
/* Finish initating strings */
|
||||
/* Finish initiating strings */
|
||||
RtlCopyMemory(DatabaseName.Buffer, DeviceInformation->DeviceName.Buffer, DeviceInformation->DeviceName.Length);
|
||||
RtlCopyMemory(DatabaseName.Buffer + (DeviceInformation->DeviceName.Length / sizeof(WCHAR)),
|
||||
RemoteDatabase.Buffer, RemoteDatabase.Length);
|
||||
|
|
|
@ -537,7 +537,7 @@ MountMgrNextDriveLetterWorker(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
}
|
||||
}
|
||||
|
||||
/* No, ensure that the device is not automonted nor removable */
|
||||
/* No, ensure that the device is not automounted nor removable */
|
||||
if (!DeviceExtension->NoAutoMount && !Removable)
|
||||
{
|
||||
if (DriveLetterInfo->DriveLetterWasAssigned)
|
||||
|
|
|
@ -698,7 +698,7 @@ FindDeviceInfo(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
FreePool(DeviceName.Buffer);
|
||||
}
|
||||
|
||||
/* Return found intormation */
|
||||
/* Return found information */
|
||||
if (NextEntry == &(DeviceExtension->DeviceListHead))
|
||||
{
|
||||
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
|
@ -1612,7 +1612,7 @@ MountMgrMountedDeviceRemoval(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
}
|
||||
}
|
||||
|
||||
/* Releave driver */
|
||||
/* Release driver */
|
||||
KeReleaseSemaphore(&(DeviceExtension->DeviceLock), IO_NO_INCREMENT, 1, FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ MountMgrNotify(IN PDEVICE_EXTENSION DeviceExtension)
|
|||
}
|
||||
IoReleaseCancelSpinLock(OldIrql);
|
||||
|
||||
/* Then, notifiy them one by one */
|
||||
/* Then, notify them one by one */
|
||||
while (!IsListEmpty(&CopyList))
|
||||
{
|
||||
NextEntry = RemoveHeadList(&CopyList);
|
||||
|
|
|
@ -489,7 +489,7 @@ CreateNewVolumeName(OUT PUNICODE_STRING VolumeName,
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* Size for volume namespace, litteral GUID, and null char */
|
||||
/* Size for volume namespace, literal GUID, and null char */
|
||||
VolumeName->MaximumLength = 0x14 + 0x4C + sizeof(UNICODE_NULL);
|
||||
VolumeName->Buffer = AllocatePool(0x14 + 0x4C + sizeof(UNICODE_NULL));
|
||||
if (!VolumeName->Buffer)
|
||||
|
|
|
@ -54,7 +54,7 @@ HidClassFDO_QueryCapabilities(
|
|||
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
||||
|
||||
//
|
||||
// now allocte the irp
|
||||
// now allocate the irp
|
||||
//
|
||||
Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE);
|
||||
if (!Irp)
|
||||
|
|
|
@ -218,7 +218,7 @@ i8042PowerWorkItem(
|
|||
|
||||
if (DeviceExtension->PowerInterfaceName.MaximumLength == 0)
|
||||
{
|
||||
/* We have never registred this interface ; do it */
|
||||
/* We have never registered this interface ; do it */
|
||||
Status = IoRegisterDeviceInterface(
|
||||
DeviceExtension->Common.Pdo,
|
||||
&GUID_DEVICE_SYS_BUTTON,
|
||||
|
@ -247,7 +247,7 @@ i8042PowerWorkItem(
|
|||
return;
|
||||
}
|
||||
}
|
||||
/* Enable the interface. This leads to receving a IOCTL_GET_SYS_BUTTON_CAPS,
|
||||
/* Enable the interface. This leads to receiving a IOCTL_GET_SYS_BUTTON_CAPS,
|
||||
* so we can report new capability */
|
||||
Status = IoSetDeviceInterfaceState(
|
||||
&DeviceExtension->PowerInterfaceName,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: drivers/input/i8042prt/misc.c
|
||||
* PURPOSE: Misceallenous operations
|
||||
* PURPOSE: Miscellaneous operations
|
||||
* PROGRAMMERS: Copyright 2006-2007 Hervé Poussineau (hpoussin@reactos.org)
|
||||
*/
|
||||
|
||||
|
|
|
@ -707,7 +707,7 @@ ClassAddDevice(
|
|||
Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
|
||||
|
||||
/* Register interface ; ignore the error (if any) as having
|
||||
* a registred interface is not so important... */
|
||||
* a registered interface is not so important... */
|
||||
Status = IoRegisterDeviceInterface(
|
||||
Pdo,
|
||||
&GUID_DEVINTERFACE_KEYBOARD,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Keyboard class driver
|
||||
* FILE: drivers/input/kbdclass/misc.c
|
||||
* PURPOSE: Misceallenous operations
|
||||
* PURPOSE: Miscellaneous operations
|
||||
*
|
||||
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
|
||||
*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Mouse class driver
|
||||
* FILE: drivers/input/mouclass/misc.c
|
||||
* PURPOSE: Misceallenous operations
|
||||
* PURPOSE: Miscellaneous operations
|
||||
*
|
||||
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
|
||||
*/
|
||||
|
|
|
@ -683,7 +683,7 @@ ClassAddDevice(
|
|||
Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
|
||||
|
||||
/* Register interface ; ignore the error (if any) as having
|
||||
* a registred interface is not so important... */
|
||||
* a registered interface is not so important... */
|
||||
Status = IoRegisterDeviceInterface(
|
||||
Pdo,
|
||||
&GUID_DEVINTERFACE_MOUSE,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* PROJECT: ReactOS Serial mouse driver
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: drivers/input/sermouse/fdo.c
|
||||
* PURPOSE: Misceallenous operations
|
||||
* PURPOSE: Miscellaneous operations
|
||||
* PROGRAMMERS: Copyright 2005-2006 Hervé Poussineau (hpoussin@reactos.org)
|
||||
*/
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
receiving mouse information (and if you are making mouse then send out
|
||||
7 databits and 2 stop bits).
|
||||
The byte marked with 1. is send first, then the others. The bit D6 in
|
||||
the first byte is used for syncronizing the software to mouse packets
|
||||
the first byte is used for synchronizing the software to mouse packets
|
||||
if it goes out of sync.
|
||||
|
||||
LB is the state of the left button (1 means pressed down)
|
||||
|
@ -37,7 +37,7 @@
|
|||
Logitech serial mouse
|
||||
|
||||
Logitech uses the Microsoft serial mouse protocol in their mouses (for
|
||||
example Logitech Pilot mouse and others). The origianal protocol supports
|
||||
example Logitech Pilot mouse and others). The original protocol supports
|
||||
only two buttons, but logitech as added third button to some of their
|
||||
mouse models. To make this possible logitech has made one extension to
|
||||
the protocol.
|
||||
|
|
|
@ -2351,7 +2351,7 @@ KsMergeAutomationTables(
|
|||
|
||||
if (AutomationTableA && AutomationTableB)
|
||||
{
|
||||
// FIXME handle different propery item sizes
|
||||
// FIXME handle different property item sizes
|
||||
ASSERT(AutomationTableA->PropertyItemSize == AutomationTableB->PropertyItemSize);
|
||||
}
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ ClockPropertyResolution(
|
|||
/* sanity check */
|
||||
ASSERT(ObjectHeader);
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
Clock = (PKSICLOCK)ObjectHeader->ObjectType;
|
||||
|
||||
Resolution->Error = Clock->DefaultClock->Error;
|
||||
|
@ -224,7 +224,7 @@ ClockPropertyState(
|
|||
/* sanity check */
|
||||
ASSERT(ObjectHeader);
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
Clock = (PKSICLOCK)ObjectHeader->ObjectType;
|
||||
|
||||
*State = Clock->DefaultClock->State;
|
||||
|
|
|
@ -670,7 +670,7 @@ IKsFilter_GetFilterFromIrp(
|
|||
/* get current irp stack */
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
||||
/* santiy check */
|
||||
/* sanity check */
|
||||
ASSERT(IoStack->FileObject != NULL);
|
||||
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
@ -870,7 +870,7 @@ KspHandleDataIntersection(
|
|||
DataRange->FormatSize, DataRange->SampleSize, DataRange->Alignment, DataRange->Flags, DataRange->Reserved, DataLength);
|
||||
|
||||
/* FIXME implement KsPinDataIntersectionEx */
|
||||
/* Call miniport's properitary handler */
|
||||
/* Call miniport's proprietary handler */
|
||||
Status = This->Filter.Descriptor->PinDescriptors[Pin->PinId].IntersectHandler(&This->Filter,
|
||||
Irp,
|
||||
Pin,
|
||||
|
|
|
@ -195,7 +195,7 @@ KsReadFile(
|
|||
|
||||
if (Result && NT_SUCCESS(IoStatusBlock->Status))
|
||||
{
|
||||
/* request was handeled and succeeded */
|
||||
/* request was handled and succeeded */
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ KsWriteFile(
|
|||
|
||||
if (Result && NT_SUCCESS(IoStatusBlock->Status))
|
||||
{
|
||||
/* request was handeled and succeeded */
|
||||
/* request was handled and succeeded */
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
@ -574,7 +574,7 @@ KsStreamIo(
|
|||
|
||||
if (Ret)
|
||||
{
|
||||
/* the request was handeled */
|
||||
/* the request was handled */
|
||||
return IoStatusBlock->Status;
|
||||
}
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ KsStreamIo(
|
|||
|
||||
if (Ret)
|
||||
{
|
||||
/* the request was handeled */
|
||||
/* the request was handled */
|
||||
return IoStatusBlock->Status;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ IKsPin_PinMasterClock(
|
|||
/* sanity check */
|
||||
ASSERT(ObjectHeader);
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
/* sanity check */
|
||||
|
@ -276,7 +276,7 @@ IKsPin_PinStatePropertyHandler(
|
|||
/* get the object header */
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
/* acquire control mutex */
|
||||
|
@ -358,7 +358,7 @@ IKsPin_PinAllocatorFramingPropertyHandler(
|
|||
/* get the object header */
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
/* setting allocator flags is not supported */
|
||||
|
@ -429,7 +429,7 @@ IKsPin_PinDataFormatPropertyHandler(
|
|||
/* get the object header */
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
/* acquire control mutex */
|
||||
|
@ -2007,7 +2007,7 @@ IKsPin_DispatchDeviceIoControl(
|
|||
/* get the object header */
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
||||
/* locate ks pin implemention from KSPIN offset */
|
||||
/* locate ks pin implementation from KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
/* current irp stack */
|
||||
|
@ -2127,7 +2127,7 @@ IKsPin_Close(
|
|||
/* get the object header */
|
||||
ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
|
||||
|
||||
/* locate ks pin implemention fro KSPIN offset */
|
||||
/* locate ks pin implementation fro KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
|
||||
|
||||
if (This->Pin.Descriptor->Dispatch->Close)
|
||||
|
@ -2197,7 +2197,7 @@ IKsPin_DispatchCreateClock(
|
|||
/* sanity check */
|
||||
ASSERT(Pin);
|
||||
|
||||
/* locate ks pin implemention fro KSPIN offset */
|
||||
/* locate ks pin implementation fro KSPIN offset */
|
||||
This = (IKsPinImpl*)CONTAINING_RECORD(Pin, IKsPinImpl, Pin);
|
||||
|
||||
/* sanity check */
|
||||
|
@ -2514,19 +2514,19 @@ KspCreatePin(
|
|||
This->Pin.ResetState = KSRESET_END;
|
||||
This->Pin.ClientState = KSSTATE_STOP;
|
||||
|
||||
/* intialize allocator create item */
|
||||
/* initialize allocator create item */
|
||||
CreateItem[0].Context = (PVOID)&This->Pin;
|
||||
CreateItem[0].Create = IKsPin_DispatchCreateAllocator;
|
||||
CreateItem[0].Flags = KSCREATE_ITEM_FREEONSTOP;
|
||||
RtlInitUnicodeString(&CreateItem[0].ObjectClass, KSSTRING_Allocator);
|
||||
|
||||
/* intialize clock create item */
|
||||
/* initialize clock create item */
|
||||
CreateItem[1].Context = (PVOID)&This->Pin;
|
||||
CreateItem[1].Create = IKsPin_DispatchCreateClock;
|
||||
CreateItem[1].Flags = KSCREATE_ITEM_FREEONSTOP;
|
||||
RtlInitUnicodeString(&CreateItem[1].ObjectClass, KSSTRING_Clock);
|
||||
|
||||
/* intialize topology node create item */
|
||||
/* initialize topology node create item */
|
||||
CreateItem[2].Context = (PVOID)&This->Pin;
|
||||
CreateItem[2].Create = IKsPin_DispatchCreateNode;
|
||||
CreateItem[2].Flags = KSCREATE_ITEM_FREEONSTOP;
|
||||
|
|
|
@ -104,7 +104,7 @@ KsRegisterWorker(
|
|||
if (!KsWorker)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
/* initialze the work ctx */
|
||||
/* initialize the work ctx */
|
||||
ExInitializeWorkItem(&KsWorker->WorkItem, WorkItemRoutine, (PVOID)KsWorker);
|
||||
/* setup type */
|
||||
KsWorker->Type = WorkQueueType;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define MIXER_INTERRUPT_SETUP_REGISTER 0x80
|
||||
#define MIXER_DMA_SETUP_REGISTER 0x81
|
||||
#define MIXER_INTERRUP_STATUS_REGISTEER 0x82
|
||||
#define MIXER_INTERRUPT_STATUS_REGISTEER 0x82
|
||||
|
||||
void get_dma(SB16* sb16);
|
||||
unsigned char read_mixer(unsigned short base,unsigned char reg);
|
||||
|
|
|
@ -58,7 +58,7 @@ void sb16_play(WAVE_HDR* wave)
|
|||
sb16.buffer=((unsigned char*)tmp[i-1]);
|
||||
|
||||
/*
|
||||
* Because this is used by alomost every subsystem including irqs it
|
||||
* Because this is used by almost every subsystem including irqs it
|
||||
* must be atomic. The following code sequence disables interrupts after
|
||||
* saving the previous state of the interrupt flag
|
||||
*/
|
||||
|
|
|
@ -182,7 +182,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Unexpected disconnect by the remote host or initial read after a graceful disconnnect */
|
||||
/* Unexpected disconnect by the remote host or initial read after a graceful disconnect */
|
||||
Status = FCB->LastReceiveStatus;
|
||||
}
|
||||
NextIrp->IoStatus.Status = Status;
|
||||
|
|
|
@ -30,7 +30,7 @@ static NTSTATUS NTAPI SendComplete
|
|||
|
||||
/*
|
||||
* The Irp parameter passed in is the IRP of the stream between AFD and
|
||||
* TDI driver. It's not very usefull to us. We need the IRPs of the stream
|
||||
* TDI driver. It's not very useful to us. We need the IRPs of the stream
|
||||
* between usermode and AFD. Those are chained from
|
||||
* FCB->PendingIrpList[FUNCTION_SEND] and you'll see them in the code
|
||||
* below as "NextIrp" ('cause they are the next usermode IRP to be
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
/* Define NOCARD to test NDIS without a card */
|
||||
//#define NOCARD
|
||||
|
||||
/* NE2000 sepcific constants */
|
||||
/* NE2000 specific constants */
|
||||
#define NIC_DATA 0x10 /* Data register */
|
||||
#define NIC_RESET 0x1F /* Reset register */
|
||||
|
||||
|
|
|
@ -796,7 +796,7 @@ static NDIS_STATUS NTAPI MiniportSetInformation(
|
|||
Adapter->LookaheadSize = GenericULONG;
|
||||
break;
|
||||
case OID_802_3_MULTICAST_LIST:
|
||||
/* Verify length. Must be multiplum of hardware address length */
|
||||
/* Verify length. Must be multiple of hardware address length */
|
||||
if ((InformationBufferLength % DRIVER_LENGTH_OF_ADDRESS) != 0) {
|
||||
*BytesRead = 0;
|
||||
*BytesNeeded = 0;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
* 09-Sep-2003 vizzini - Created
|
||||
* 10-Oct-2004 navaraf - Fix receive to work on VMware adapters (
|
||||
* need to set busmaster bit on PCI).
|
||||
* - Indicate receive completition.
|
||||
* - Indicate receive completion.
|
||||
* - Implement packet transmitting.
|
||||
* - Don't read slot number from registry and
|
||||
* report itself as NDIS 5.0 miniport.
|
||||
|
@ -192,7 +192,7 @@ MiniportHandleInterrupt(
|
|||
if (Descriptor->FLAGS2 & TD2_LCOL)
|
||||
Adapter->Statistics.XmtLateCollisions++;
|
||||
if (Descriptor->FLAGS2 & TD2_EXDEF)
|
||||
Adapter->Statistics.XmtExcessiveDefferals++;
|
||||
Adapter->Statistics.XmtExcessiveDeferrals++;
|
||||
if (Descriptor->FLAGS2 & TD2_UFLO)
|
||||
Adapter->Statistics.XmtBufferUnderflows++;
|
||||
if (Descriptor->FLAGS2 & TD2_BUFF)
|
||||
|
@ -650,7 +650,7 @@ MiniportMediaDetectionTimer(
|
|||
IN PVOID SystemSpecific2,
|
||||
IN PVOID SystemSpecific3)
|
||||
/*
|
||||
* FUNCTION: Periodially query media state
|
||||
* FUNCTION: Periodically query media state
|
||||
* ARGUMENTS:
|
||||
* FunctionContext: Adapter context
|
||||
* NOTES:
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct _ADAPTER_STATS
|
|||
ULONG XmtLossesOfCarrier;
|
||||
ULONG XmtCollisions;
|
||||
ULONG XmtLateCollisions;
|
||||
ULONG XmtExcessiveDefferals;
|
||||
ULONG XmtExcessiveDeferrals;
|
||||
ULONG XmtBufferUnderflows;
|
||||
ULONG XmtBufferErrors;
|
||||
ULONG XmtOneRetry;
|
||||
|
|
|
@ -365,7 +365,7 @@ typedef struct _RECEIVE_DESCRIPTOR
|
|||
USHORT MCNT; /* message byte count ; always AND with 0x0fff */
|
||||
UCHAR RPC; /* runt packet count */
|
||||
UCHAR RCC; /* receive collision count */
|
||||
ULONG RES; /* resereved */
|
||||
ULONG RES; /* reserved */
|
||||
} RECEIVE_DESCRIPTOR, *PRECEIVE_DESCRIPTOR;
|
||||
|
||||
/* receive descriptor flags */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ReactOS AMD PCNet Driver
|
||||
*
|
||||
* Copyright (C) 2000 Casper Hornstroup <chorns@users.sourceforge.net>
|
||||
* Copyright (C) 2000 Casper Hornstrup <chorns@users.sourceforge.net>
|
||||
* Copyright (C) 2003 Vizzini <vizzini@plasmic.com>
|
||||
* Copyright (C) 2004 Filip Navara <navaraf@reactos.com>
|
||||
*
|
||||
|
@ -302,7 +302,7 @@ MiniportQueryInformation(
|
|||
Adapter->Statistics.XmtLossesOfCarrier +
|
||||
Adapter->Statistics.XmtCollisions +
|
||||
Adapter->Statistics.XmtLateCollisions +
|
||||
Adapter->Statistics.XmtExcessiveDefferals +
|
||||
Adapter->Statistics.XmtExcessiveDeferrals +
|
||||
Adapter->Statistics.XmtBufferUnderflows +
|
||||
Adapter->Statistics.XmtBufferErrors;
|
||||
break;
|
||||
|
|
|
@ -141,7 +141,7 @@
|
|||
//EEPROM Commands
|
||||
#define EE_READ_CMD 0x06
|
||||
|
||||
#define RSR_MAR 0x8000 //Mulicast receive
|
||||
#define RSR_MAR 0x8000 //Multicast receive
|
||||
#define RSR_PAM 0x4000 //Physical address match (directed packet)
|
||||
#define RSR_BAR 0x2000 //Broadcast receive
|
||||
#define RSR_ISE 0x0020 //Invalid symbol
|
||||
|
|
|
@ -483,7 +483,7 @@ ProtocolStatusComplete(
|
|||
|
||||
/*!
|
||||
* @brief Called by NDIS during NdisRegisterProtocol to set up initial
|
||||
* bindings, and periodically thereafer as new adapters come online
|
||||
* bindings, and periodically thereafter as new adapters come online
|
||||
*
|
||||
* @param Status - Return value to NDIS
|
||||
* @param BindContext - Handle provided by NDIS to track pending binding operations
|
||||
|
|
|
@ -141,7 +141,7 @@ VOID FreeNdisPacketX
|
|||
exFreePool(Data);
|
||||
}
|
||||
|
||||
/* Finally free the NDIS packet discriptor */
|
||||
/* Finally free the NDIS packet descriptor */
|
||||
NdisFreePacket(Packet);
|
||||
UntrackFL(File,Line,Packet);
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ UINT CopyBufferToBufferChain(
|
|||
|
||||
DstSize -= BytesToCopy;
|
||||
if (DstSize == 0) {
|
||||
/* No more bytes in desination buffer. Proceed to
|
||||
/* No more bytes in destination buffer. Proceed to
|
||||
the next buffer in the destination buffer chain */
|
||||
NdisGetNextBuffer(DstBuffer, &DstBuffer);
|
||||
if (!DstBuffer)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* Whenever a read operation is performed, the NDIS library allocates space and returns
|
||||
* it. A linked list is kept associated with every handle of the memory allocated to
|
||||
* it. When the handle is closed, the resources are systematically released.
|
||||
* - The NDIS_HANDLE Configuraiton context is no longer a registry handle. An opaque struct
|
||||
* - The NDIS_HANDLE Configuration context is no longer a registry handle. An opaque struct
|
||||
* had to be created to allow for resource tracking. This means that Miniports cannot just
|
||||
* pass this NDIS_HANDLE to things like ZwQueryValueKey(). I don't thknk they do (they
|
||||
* certainly should not), but it should be kept in mind.
|
||||
|
|
|
@ -20,7 +20,7 @@ EthCreateFilter(
|
|||
/*
|
||||
* FUNCTION: Construct an ethernet filter
|
||||
* ARGUMENTS:
|
||||
* MaximumMulticastAddresses: Maximum number of multicast adderesses.
|
||||
* MaximumMulticastAddresses: Maximum number of multicast addresses.
|
||||
* AdapterAddress: Current ethernet address of the adapter.
|
||||
* Filter: The created filter on successful return.
|
||||
* RETURNS:
|
||||
|
|
|
@ -191,7 +191,7 @@ IO_ALLOCATION_ACTION NTAPI NdisSubordinateMapRegisterCallback (
|
|||
/*
|
||||
* FUNCTION: Called back during reservation of map registers
|
||||
* ARGUMENTS:
|
||||
* DeviceObject: Device object of the deivce setting up DMA
|
||||
* DeviceObject: Device object of the device setting up DMA
|
||||
* Irp: Reserved; must be ignored
|
||||
* MapRegisterBase: Map registers assigned for transfer
|
||||
* Context: LOGICAL_ADAPTER object of the requesting miniport
|
||||
|
@ -221,7 +221,7 @@ IO_ALLOCATION_ACTION NTAPI NdisBusMasterMapRegisterCallback (
|
|||
/*
|
||||
* FUNCTION: Called back during reservation of map registers
|
||||
* ARGUMENTS:
|
||||
* DeviceObject: Device object of the deivce setting up DMA
|
||||
* DeviceObject: Device object of the device setting up DMA
|
||||
* Irp: Reserved; must be ignored
|
||||
* MapRegisterBase: Map registers assigned for transfer
|
||||
* Context: LOGICAL_ADAPTER object of the requesting miniport
|
||||
|
@ -595,7 +595,7 @@ NdisMStartBufferPhysicalMapping(
|
|||
* NOTES:
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
* - The basic idea: call IoMapTransfer() in a loop as many times as it takes
|
||||
* in order to map all of the virtual memory to physical memoroy readable
|
||||
* in order to map all of the virtual memory to physical memory readable
|
||||
* by the device
|
||||
* - The caller supplies storage for the physical address array.
|
||||
*/
|
||||
|
@ -650,7 +650,7 @@ NdisMCompleteBufferPhysicalMapping(
|
|||
* ARGUMENTS:
|
||||
* - MiniportAdapterHandle: handle originally input to MiniportInitialize
|
||||
* - Buffer: NDIS_BUFFER to complete the mapping on
|
||||
* - PhyscialMapRegister: the chosen map register
|
||||
* - PhysicalMapRegister: the chosen map register
|
||||
* NOTES:
|
||||
* - May be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
|
|
|
@ -114,7 +114,7 @@ NdisWriteEventLogEntry(
|
|||
* ARGUMENTS:
|
||||
* LogHandle: pointer to the driver object of the protocol logging the event
|
||||
* EventCode: NDIS_STATUS_XXX describing the event
|
||||
* UniqueEventValue: identifiees this instance of the error value
|
||||
* UniqueEventValue: identifies this instance of the error value
|
||||
* NumStrings: number of strings in StringList
|
||||
* StringList: list of strings to log
|
||||
* DataSize: number of bytes in Data
|
||||
|
|
|
@ -1886,7 +1886,7 @@ NdisIPnPStartDevice(
|
|||
/*
|
||||
* FUNCTION: Handle the PnP start device event
|
||||
* ARGUMENTS:
|
||||
* DeviceObejct = Functional Device Object
|
||||
* DeviceObject = Functional Device Object
|
||||
* Irp = IRP_MN_START_DEVICE I/O request packet
|
||||
* RETURNS:
|
||||
* Status of operation
|
||||
|
@ -2212,7 +2212,7 @@ NdisIPnPStopDevice(
|
|||
/*
|
||||
* FUNCTION: Handle the PnP stop device event
|
||||
* ARGUMENTS:
|
||||
* DeviceObejct = Functional Device Object
|
||||
* DeviceObject = Functional Device Object
|
||||
* Irp = IRP_MN_STOP_DEVICE I/O request packet
|
||||
* RETURNS:
|
||||
* Status of operation
|
||||
|
@ -2451,7 +2451,7 @@ NdisIAddDevice(
|
|||
* Get name of the Linkage registry key for our adapter. It's located under
|
||||
* the driver key for our driver and so we have basicly two ways to do it.
|
||||
* Either we can use IoOpenDriverRegistryKey or compose it using information
|
||||
* gathered by IoGetDeviceProperty. I choosed the second because
|
||||
* gathered by IoGetDeviceProperty. I chose the second because
|
||||
* IoOpenDriverRegistryKey wasn't implemented at the time of writing.
|
||||
*/
|
||||
|
||||
|
|
|
@ -775,7 +775,7 @@ NdisOpenAdapter(
|
|||
* MediumArray = Pointer to an array of NDIS_MEDIUMs called can support
|
||||
* MediumArraySize = Number of elements in MediumArray
|
||||
* NdisProtocolHandle = Handle returned by NdisRegisterProtocol
|
||||
* ProtocolBindingContext = Pointer to caller suplied context area
|
||||
* ProtocolBindingContext = Pointer to caller supplied context area
|
||||
* AdapterName = Pointer to buffer with name of adapter
|
||||
* OpenOptions = Bitmask with flags passed to next-lower driver
|
||||
* AddressingInformation = Optional pointer to buffer with NIC specific information
|
||||
|
|
|
@ -232,7 +232,7 @@ NdisMSetPeriodicTimer(
|
|||
* Timer: pointer to the timer object to set
|
||||
* MillisecondsPeriod: period of the timer
|
||||
* NOTES:
|
||||
* - Minimum predictible interval is ~10ms
|
||||
* - Minimum predictable interval is ~10ms
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
{
|
||||
|
@ -278,7 +278,7 @@ NdisMSetTimer(
|
|||
* Timer: timer object to set
|
||||
* MillisecondsToDelay: time to wait for the timer to expire
|
||||
* NOTES:
|
||||
* - Minimum predictible interval is ~10ms
|
||||
* - Minimum predictable interval is ~10ms
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
{
|
||||
|
@ -323,7 +323,7 @@ NdisSetTimer(
|
|||
* Timer: timer object to set
|
||||
* MillisecondsToDelay: time to wait for the timer to expire
|
||||
* NOTES:
|
||||
* - Minimum predictible interval is ~10ms
|
||||
* - Minimum predictable interval is ~10ms
|
||||
* - Must be called at IRQL <= DISPATCH_LEVEL
|
||||
*/
|
||||
{
|
||||
|
|
|
@ -107,7 +107,7 @@ GetPacketTypeFromHeaderBuffer(PLAN_ADAPTER Adapter,
|
|||
switch (Adapter->Media)
|
||||
{
|
||||
case NdisMedium802_3:
|
||||
/* Ethernet and IEEE 802.3 frames can be destinguished by
|
||||
/* Ethernet and IEEE 802.3 frames can be distinguished by
|
||||
looking at the IEEE 802.3 length field. This field is
|
||||
less than or equal to 1500 for a valid IEEE 802.3 frame
|
||||
and larger than 1500 is it's a valid EtherType value.
|
||||
|
@ -927,7 +927,7 @@ VOID NTAPI ProtocolBindAdapter(
|
|||
IN PVOID SystemSpecific2)
|
||||
/*
|
||||
* FUNCTION: Called by NDIS during NdisRegisterProtocol to set up initial
|
||||
* bindings, and periodically thereafer as new adapters come online
|
||||
* bindings, and periodically thereafter as new adapters come online
|
||||
* ARGUMENTS:
|
||||
* Status: Return value to NDIS
|
||||
* BindContext: Handle provided by NDIS to track pending binding operations
|
||||
|
|
|
@ -341,7 +341,7 @@ struct ustat {
|
|||
* separated swab functions from cpu_to_XX,
|
||||
* to clean up support for bizarre-endian architectures.
|
||||
*
|
||||
* See asm-i386/byteorder.h and suches for examples of how to provide
|
||||
* See asm-i386/byteorder.h and such for examples of how to provide
|
||||
* architecture-dependent optimized versions
|
||||
*
|
||||
*/
|
||||
|
@ -1465,7 +1465,7 @@ typedef struct __wait_queue_head wait_queue_head_t;
|
|||
#endif
|
||||
|
||||
/*
|
||||
* Macros for declaration and initialisaton of the datatypes
|
||||
* Macros for declaration and initialisation of the datatypes
|
||||
*/
|
||||
|
||||
#if WAITQUEUE_DEBUG
|
||||
|
@ -1635,7 +1635,7 @@ typedef struct kmem_cache_s kmem_cache_t;
|
|||
* The first 3 are only valid when the allocator as been build
|
||||
* SLAB_DEBUG_SUPPORT.
|
||||
*/
|
||||
#define SLAB_DEBUG_FREE 0x00000100UL /* Peform (expensive) checks on free */
|
||||
#define SLAB_DEBUG_FREE 0x00000100UL /* Perform (expensive) checks on free */
|
||||
#define SLAB_DEBUG_INITIAL 0x00000200UL /* Call constructor (as verifier) */
|
||||
#define SLAB_RED_ZONE 0x00000400UL /* Red zone objs in a cache */
|
||||
#define SLAB_POISON 0x00000800UL /* Poison objects */
|
||||
|
@ -1775,7 +1775,7 @@ extern void poll_freewait(poll_table* pt);
|
|||
|
||||
|
||||
/*
|
||||
* Scaleable version of the fd_set.
|
||||
* Scalable version of the fd_set.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -1324,7 +1324,7 @@ struct tcp_opt {
|
|||
|
||||
/* RTT measurement */
|
||||
__u8 backoff; /* backoff */
|
||||
__u32 srtt; /* smothed round trip time << 3 */
|
||||
__u32 srtt; /* smoothed round trip time << 3 */
|
||||
__u32 mdev; /* medium deviation */
|
||||
__u32 mdev_max; /* maximal mdev for the last rtt period */
|
||||
__u32 rttvar; /* smoothed mdev_max */
|
||||
|
@ -2109,10 +2109,10 @@ static __inline int tcp_sk_listen_hashfn(struct sock *sk)
|
|||
*/
|
||||
|
||||
#define TCP_SYN_RETRIES 5 /* number of times to retry active opening a
|
||||
* connection: ~180sec is RFC minumum */
|
||||
* connection: ~180sec is RFC minimum */
|
||||
|
||||
#define TCP_SYNACK_RETRIES 5 /* number of times to retry passive opening a
|
||||
* connection: ~180sec is RFC minumum */
|
||||
* connection: ~180sec is RFC minimum */
|
||||
|
||||
|
||||
#define TCP_ORPHAN_RETRIES 7 /* number of times to retry on an orphaned
|
||||
|
@ -2808,7 +2808,7 @@ extern u32 __tcp_select_window(struct sock *sk);
|
|||
|
||||
/* TCP timestamps are only 32-bits, this causes a slight
|
||||
* complication on 64-bit systems since we store a snapshot
|
||||
* of jiffies in the buffer control blocks below. We decidely
|
||||
* of jiffies in the buffer control blocks below. We decidedly
|
||||
* only use of the low 32-bits of jiffies and hide the ugly
|
||||
* casts with the following macro.
|
||||
*/
|
||||
|
@ -2984,7 +2984,7 @@ static __inline void tcp_cwnd_validate(struct sock *sk, struct tcp_opt *tp)
|
|||
#endif
|
||||
}
|
||||
|
||||
/* Set slow start threshould and cwnd not falling to slow start */
|
||||
/* Set slow start threshold and cwnd not falling to slow start */
|
||||
static __inline void __tcp_enter_cwr(struct tcp_opt *tp)
|
||||
{
|
||||
#if 0
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue