1//
2//  AppleS5L8930XIO.cpp
3//  AppleS5L8930XDevice
4//
5//  Created by rms on 5/23/13.
6//  Copyright (c) 2013 rms. All rights reserved.
7//
8
9#include "AppleS5L8930XIO.h"
10#include <IOKit/IOPlatformExpert.h>
11
12#define super IOService
13OSDefineMetaClassAndStructors(AppleARMIO, ARMIO);
14
15#define S5L_LOG \
16    IOLog("[%s] ", __PRETTY_FUNCTION__), IOLog
17
18bool AppleARMIO::init(OSDictionary * propTable)
19{
20    if (!super::init(propTable)) {
21        panic("failed to initialize super IOService\n");
22    }
23    return true;
24}
25
26IOService *AppleARMIO::probe(IOService * provider, SInt32 * score)
27{
28    return this;
29}
30
31bool AppleARMIO::start(IOService * provider)
32{
33    if (!super::start(provider)) {
34        panic("failed to start super provider");
35    }
36    IOLog("AppleARMIO::start: Publishing device tree entries to IOService plane...\n");
37    publishBelow(provider);
38    registerService();
39    return true;
40}
41