TianoCore EDK2 master
Loading...
Searching...
No Matches
Fat.c File Reference
#include "Fat.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FatEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
EFI_STATUS EFIAPI FatUnload (IN EFI_HANDLE ImageHandle)
 
EFI_STATUS EFIAPI FatDriverBindingSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI FatDriverBindingStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
 
EFI_STATUS EFIAPI FatDriverBindingStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 

Variables

EFI_DRIVER_BINDING_PROTOCOL gFatDriverBinding
 

Detailed Description

Fat File System driver routines that support EFI driver model.

Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Fat.c.

Function Documentation

◆ FatDriverBindingStart()

EFI_STATUS EFIAPI FatDriverBindingStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Start this driver on ControllerHandle by opening a Block IO and Disk IO protocol, reading Device Path. Add a Simple File System protocol to ControllerHandle if the media contains a valid file system.

Parameters
This- Protocol instance pointer.
ControllerHandle- Handle of device to bind driver to.
RemainingDevicePath- Not used.
Return values
EFI_SUCCESS- This driver is added to DeviceHandle.
EFI_ALREADY_STARTED- This driver is already running on DeviceHandle.
EFI_OUT_OF_RESOURCES- Can not allocate the memory.
Returns
other - This driver does not support this device.

Definition at line 357 of file Fat.c.

◆ FatDriverBindingStop()

EFI_STATUS EFIAPI FatDriverBindingStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Stop this driver on ControllerHandle.

Parameters
This- Protocol instance pointer.
ControllerHandle- Handle of device to stop driver on.
NumberOfChildren- Not used.
ChildHandleBuffer- Not used.
Return values
EFI_SUCCESS- This driver is removed DeviceHandle.
Returns
other - This driver was not removed from this device.

Definition at line 485 of file Fat.c.

◆ FatDriverBindingSupported()

EFI_STATUS EFIAPI FatDriverBindingSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Test to see if this driver can add a file system to ControllerHandle. ControllerHandle must support both Disk IO and Block IO protocols.

Parameters
This- Protocol instance pointer.
ControllerHandle- Handle of device to test.
RemainingDevicePath- Not used.
Return values
EFI_SUCCESS- This driver supports this device.
EFI_ALREADY_STARTED- This driver is already running on this device.
Returns
other - This driver does not support this device.

Definition at line 289 of file Fat.c.

◆ FatEntryPoint()

EFI_STATUS EFIAPI FatEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Register Driver Binding protocol for this driver.

Parameters
ImageHandle- Handle for the image of this driver.
SystemTable- Pointer to the EFI System Table.
Return values
EFI_SUCCESS- Driver loaded.
Returns
other - Driver not loaded.

Definition at line 138 of file Fat.c.

◆ FatUnload()

EFI_STATUS EFIAPI FatUnload ( IN EFI_HANDLE  ImageHandle)

Unload function for this image. Uninstall DriverBinding protocol.

Parameters
ImageHandle- Handle for the image of this driver.
Return values
EFI_SUCCESS- Driver unloaded successfully.
Returns
other - Driver can not unloaded.

Definition at line 173 of file Fat.c.

Variable Documentation

◆ gFatDriverBinding

EFI_DRIVER_BINDING_PROTOCOL gFatDriverBinding
Initial value:
= {
0xa,
}
EFI_STATUS EFIAPI FatDriverBindingStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
Definition: Fat.c:485
EFI_STATUS EFIAPI FatDriverBindingStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: Fat.c:357
EFI_STATUS EFIAPI FatDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
Definition: Fat.c:289
#define NULL
Definition: Base.h:319

Definition at line 116 of file Fat.c.