1
0
mirror of https://github.com/OpenIntelWireless/itlwm.git synced 2025-06-08 02:23:07 +00:00
Files
itlwm/AirportItlwm/IOPCIEDeviceWrapper.hpp

37 lines
974 B
C++

//
// IOPCIEDeviceWrapper.hpp
// AirportItlwm-Sonoma
//
// Created by qcwap on 2023/6/27.
// Copyright © 2023 钟先耀. All rights reserved.
//
#ifndef IOPCIEDeviceWrapper_hpp
#define IOPCIEDeviceWrapper_hpp
#include <IOKit/IOService.h>
#include <IOKit/pci/IOPCIDevice.h>
#include <IOKit/IOLib.h>
#include <IOKit/IOTypes.h>
#include <HAL/ItlHalService.hpp>
class IOPCIEDeviceWrapper : public IOService {
OSDeclareDefaultStructors(IOPCIEDeviceWrapper)
public:
virtual IOService* probe(IOService* provider, SInt32* score) override;
virtual bool start(IOService *provider) override;
virtual void stop(IOService *provider) override;
virtual IOWorkLoop* getWorkLoop() const override;
virtual IOReturn setPowerState(
unsigned long powerStateOrdinal,
IOService * whatDevice ) override;
public:
ItlHalService *fHalService;
IOPCIDevice *pciNub;
};
#endif /* IOPCIEDeviceWrapper_hpp */