summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Pci/UndiRuntimeDxe/Decode.c1
-rw-r--r--MdeModulePkg/Bus/Pci/UndiRuntimeDxe/E100b.c16
-rw-r--r--MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c10
-rw-r--r--MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c2
-rw-r--r--MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c5
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c1
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c11
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/mousehid.c6
8 files changed, 5 insertions, 47 deletions
diff --git a/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/Decode.c b/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/Decode.c
index a898eeb..f169d88 100644
--- a/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/Decode.c
+++ b/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/Decode.c
@@ -1390,7 +1390,6 @@ badcdb:
@return None
**/
-STATIC
UINT8
ChkSum (
IN VOID *Buffer,
diff --git a/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/E100b.c b/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/E100b.c
index 6612d46..c0600c5 100644
--- a/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/E100b.c
+++ b/MdeModulePkg/Bus/Pci/UndiRuntimeDxe/E100b.c
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Undi32.h"
-static UINT8 basic_config_cmd[22] = {
+UINT8 basic_config_cmd[22] = {
22, 0x08,
0, 0,
0, (UINT8)0x80,
@@ -255,7 +255,6 @@ OutLong (
@return TODO: add return values
**/
-STATIC
UINTN
MapIt (
IN NIC_DATA_INSTANCE *AdapterInfo,
@@ -318,7 +317,6 @@ MapIt (
@return TODO: add return values
**/
-STATIC
VOID
UnMapIt (
IN NIC_DATA_INSTANCE *AdapterInfo,
@@ -357,7 +355,6 @@ UnMapIt (
**/
// TODO: MicroSeconds - add argument and description to function comment
-STATIC
VOID
DelayIt (
IN NIC_DATA_INSTANCE *AdapterInfo,
@@ -381,7 +378,6 @@ DelayIt (
**/
// TODO: flag - add argument and description to function comment
-STATIC
VOID
BlockIt (
IN NIC_DATA_INSTANCE *AdapterInfo,
@@ -404,7 +400,6 @@ BlockIt (
@return TODO: add return values
**/
-STATIC
UINT8
Load_Base_Regs (
NIC_DATA_INSTANCE *AdapterInfo
@@ -449,7 +444,6 @@ Load_Base_Regs (
@return TODO: add return values
**/
-STATIC
UINT8
IssueCB (
NIC_DATA_INSTANCE *AdapterInfo,
@@ -509,7 +503,6 @@ IssueCB (
@return TODO: add return values
**/
-STATIC
UINT8
Configure (
NIC_DATA_INSTANCE *AdapterInfo
@@ -636,7 +629,6 @@ E100bSetupIAAddr (
**/
-STATIC
VOID
StopRU (
IN NIC_DATA_INSTANCE *AdapterInfo
@@ -673,7 +665,6 @@ StopRU (
@retval -1 Already Started
**/
-STATIC
INT8
StartRU (
NIC_DATA_INSTANCE *AdapterInfo
@@ -1766,7 +1757,6 @@ Recycle_RFD (
#define EE_READ_CMD 6 // 110b
#define EE_ERASE_CMD (7 << 6)
-STATIC
VOID
shift_bits_out (
IN NIC_DATA_INSTANCE *AdapterInfo,
@@ -1834,7 +1824,6 @@ Returns:
@return TODO: add return values
**/
-STATIC
UINT16
shift_bits_in (
IN NIC_DATA_INSTANCE *AdapterInfo
@@ -1885,7 +1874,6 @@ shift_bits_in (
@retval FALSE if it fails to get the exclusive access
**/
-STATIC
BOOLEAN
E100bSetEepromLockOut (
IN NIC_DATA_INSTANCE *AdapterInfo
@@ -1932,7 +1920,6 @@ E100bSetEepromLockOut (
@return None
**/
-STATIC
VOID
E100bReSetEepromLockOut (
IN NIC_DATA_INSTANCE *AdapterInfo
@@ -3353,7 +3340,6 @@ CommandWaitForCompletion (
@return TODO: add return values
**/
-STATIC
INT8
SoftwareReset (
NIC_DATA_INSTANCE *AdapterInfo
diff --git a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
index f591167..d77758d 100644
--- a/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
+++ b/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
@@ -50,11 +50,10 @@ EFI_DRIVER_BINDING_PROTOCOL gSCSIBusDriverBinding = {
// structure in the SCSIBusDriverBindingStop(). Then we can
// Close all opened protocols and release this structure.
//
-STATIC EFI_GUID mScsiBusProtocolGuid = EFI_SCSI_BUS_PROTOCOL_GUID;
+EFI_GUID mScsiBusProtocolGuid = EFI_SCSI_BUS_PROTOCOL_GUID;
-STATIC VOID *WorkingBuffer;
+VOID *WorkingBuffer;
-STATIC
EFI_STATUS
EFIAPI
ScsiioToPassThruPacket (
@@ -63,14 +62,12 @@ ScsiioToPassThruPacket (
);
-STATIC
EFI_STATUS
EFIAPI
PassThruToScsiioPacket (
IN EFI_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *ScsiPacket,
IN OUT EFI_SCSI_IO_SCSI_REQUEST_PACKET *Packet
);
-STATIC
VOID
EFIAPI
NotifyFunction (
@@ -1201,7 +1198,6 @@ Returns:
}
-STATIC
EFI_STATUS
EFIAPI
ScsiioToPassThruPacket (
@@ -1255,7 +1251,6 @@ Returns:
}
-STATIC
EFI_STATUS
EFIAPI
PassThruToScsiioPacket (
@@ -1302,7 +1297,6 @@ Returns:
-STATIC
VOID
EFIAPI
NotifyFunction (
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
index c9d4f70..ad84da9 100644
--- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
+++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.c
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
// Use a shor form Usb class Device Path, which could match any usb device, in WantedUsbIoDPList to indicate all Usb devices
// are wanted Usb devices
//
-STATIC USB_CLASS_FORMAT_DEVICE_PATH mAllUsbClassDevicePath = {
+USB_CLASS_FORMAT_DEVICE_PATH mAllUsbClassDevicePath = {
{
{
MESSAGING_DEVICE_PATH,
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
index 0c5705b..d2bac53 100644
--- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
+++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
@@ -20,7 +20,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
// Static English keyboard layout
// Format:<efi key>, <unicode without shift>, <unicode with shift>, <Modifier>, <AffectedAttribute>
//
-STATIC
UINT8 KeyboardLayoutTable[USB_KEYCODE_MAX_MAKE + 8][5] = {
{EfiKeyC1, 'a', 'A', EFI_NULL_MODIFIER, EFI_AFFECTED_BY_STANDARD_SHIFT | EFI_AFFECTED_BY_CAPS_LOCK}, // 0x04
{EfiKeyB5, 'b', 'B', EFI_NULL_MODIFIER, EFI_AFFECTED_BY_STANDARD_SHIFT | EFI_AFFECTED_BY_CAPS_LOCK}, // 0x05
@@ -168,7 +167,6 @@ LoadDefaultKeyboardLayout (
//
// EFI_KEY to USB Scan Code convertion table
//
-STATIC
UINT8 UsbScanCodeConvertionTable[] = {
0xe0, // EfiKeyLCtrl
0xe3, // EfiKeyA0
@@ -280,7 +278,6 @@ UINT8 UsbScanCodeConvertionTable[] = {
//
// Keyboard Layout Modifier to EFI Scan Code convertion table
//
-STATIC
UINT8 EfiScanCodeConvertionTable[] = {
SCAN_NULL, // EFI_NULL_MODIFIER
SCAN_NULL, // EFI_LEFT_CONTROL_MODIFIER
@@ -321,7 +318,7 @@ UINT8 EfiScanCodeConvertionTable[] = {
EFI_GUID mKeyboardLayoutEventGuid = EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID;
-STATIC KB_MODIFIER KB_Mod[8] = {
+KB_MODIFIER KB_Mod[8] = {
{ MOD_CONTROL_L, 0xe0 }, // 11100000
{ MOD_CONTROL_R, 0xe4 }, // 11100100
{ MOD_SHIFT_L, 0xe1 }, // 11100001
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
index 0746928..33e1ae8 100644
--- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
+++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.c
@@ -17,7 +17,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "UsbMassImpl.h"
-STATIC
USB_MASS_TRANSPORT *mUsbMassTransport[] = {
&mUsbCbi0Transport,
&mUsbCbi1Transport,
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
index af68e61..f7186af 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c
@@ -77,19 +77,16 @@ EFI_DRIVER_BINDING_PROTOCOL gUsbMouseAbsolutePointerDriverBinding = {
//
// helper functions
//
-STATIC
BOOLEAN
IsUsbMouseAbsolutePointer (
IN EFI_USB_IO_PROTOCOL *UsbIo
);
-STATIC
EFI_STATUS
InitializeUsbMouseAbsolutePointerDevice (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointerDev
);
-STATIC
VOID
EFIAPI
UsbMouseAbsolutePointerWaitForInput (
@@ -100,7 +97,6 @@ UsbMouseAbsolutePointerWaitForInput (
//
// Mouse interrupt handler
//
-STATIC
EFI_STATUS
EFIAPI
OnMouseAbsolutePointerInterruptComplete (
@@ -113,7 +109,6 @@ OnMouseAbsolutePointerInterruptComplete (
//
// Mouse simulate TouchPad, Using AbsolutePointer Protocol
//
-STATIC
EFI_STATUS
EFIAPI
GetMouseAbsolutePointerState (
@@ -121,7 +116,6 @@ GetMouseAbsolutePointerState (
OUT EFI_ABSOLUTE_POINTER_STATE *MouseAbsolutePointerState
);
-STATIC
EFI_STATUS
EFIAPI
UsbMouseAbsolutePointerReset (
@@ -638,7 +632,6 @@ IsUsbMouseAbsolutePointer (
memory
**/
-STATIC
EFI_STATUS
InitializeUsbMouseAbsolutePointerDevice (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointerDev
@@ -775,7 +768,6 @@ InitializeUsbMouseAbsolutePointerDevice (
@return EFI_DEVICE_ERROR
**/
-STATIC
EFI_STATUS
EFIAPI
OnMouseAbsolutePointerInterruptComplete (
@@ -860,7 +852,6 @@ OnMouseAbsolutePointerInterruptComplete (
@return EFI_NOT_READY
**/
-STATIC
EFI_STATUS
EFIAPI
GetMouseAbsolutePointerState (
@@ -909,7 +900,6 @@ GetMouseAbsolutePointerState (
@return EFI_SUCCESS
**/
-STATIC
EFI_STATUS
EFIAPI
UsbMouseAbsolutePointerReset (
@@ -945,7 +935,6 @@ UsbMouseAbsolutePointerReset (
VOID
**/
-STATIC
VOID
EFIAPI
UsbMouseAbsolutePointerWaitForInput (
diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/mousehid.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/mousehid.c
index 1d2721c..21b8d05 100644
--- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/mousehid.c
+++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/mousehid.c
@@ -36,7 +36,6 @@ Abstract:
@return Position
**/
-STATIC
UINT8 *
GetNextItem (
IN UINT8 *StartPos,
@@ -136,7 +135,6 @@ GetNextItem (
@return HidItem Data
**/
-STATIC
UINT32
GetItemData (
IN HID_ITEM *HidItem
@@ -169,7 +167,6 @@ GetItemData (
**/
-STATIC
VOID
ParseLocalItem (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointer,
@@ -216,7 +213,6 @@ ParseLocalItem (
}
}
-STATIC
VOID
ParseGlobalItem (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointer,
@@ -257,7 +253,6 @@ ParseGlobalItem (
@return VOID
**/
-STATIC
VOID
ParseMainItem (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointer,
@@ -280,7 +275,6 @@ ParseMainItem (
@return VOID
**/
-STATIC
VOID
ParseHidItem (
IN USB_MOUSE_ABSOLUTE_POINTER_DEV *UsbMouseAbsolutePointer,