Base ATA HIDD classes are embedded into ata.device.
[AROS.git] / rom / devs / ata / ata.conf
blobe8a1b46657ea0d98db940b806157b16034e6da38
1 ##begin config
2 basename        ata
3 version         41.24
4 libbasetype     struct ataBase
5 residentpri     4
6 beginio_func    BeginIO
7 abortio_func    AbortIO
8 options         noexpunge
9 oopbase_field   ata_OOPBase
10 ##end config
12 ##begin cdefprivate
13 #include <hidd/ata.h>
14 #include "ata.h"
15 #include "bus_class.h"
16 ##end cdefprivate
18 ##begin cdef
19 #include <exec/devices.h>
20 #include <exec/io.h>
21 ##end cdef
23 ##begin functionlist
24 ULONG GetRdskLba(struct IORequest *io) (A1)
25 ULONG GetBlkSize(struct IORequest *io) (A1)
26 ##end functionlist
28 ##begin interface
29 ##begin config
30 interfaceid   hidd.ata.bus
31 interfacename Hidd_ATABus
32 methodstub    HIDD_ATABus
33 methodbase    HiddATABusBase
34 attributebase HiddATABusAB
35 ##end config
37 ##begin attributelist
38 BOOL  Use80Wire #    [..G] Tells if this bus uses 80-conductor cable
39 BOOL  Use32Bit #     [.SG] Controls 32-bit mode
40 BOOL  UseDMA #       [..G] Tells if this bus is DMA-capable
41 ULONG PIODataSize #  [I..] Size of PIO interface data structure
42 ULONG DMADataSize #  [I..] Size of DMA interface data structure
43 APTR *PIOVectors #   [I..] PIO interface function table
44 APTR *PIO32Vectors # [I..] 32-bit PIO interface function table
45 APTR *DMAVectors #   [I..] DMA interface function table
46 APTR  IRQHandler #   [I..] Pointer to IRQ handler function
47 APTR  IRQData #      [I..] Caller-supplied data to pass to IRQ handler
48 ##end attributelist
50 ##begin methodlist
51 APTR GetPIOInterface()
52 APTR GetDMAInterface()
53 BOOL SetXferMode(UBYTE unit, ata_XferMode mode)
54 ##end methodlist
55 ##end interface
57 ##begin class
58 ##begin config
59 basename ATA
60 type hidd
61 classid CLID_HW_ATA
62 superclass CLID_HW
63 classptr_field ataClass
64 ##end config
66 ##begin methodlist
67 .interface Root
68 New
69 Dispose
70 .interface HW
71 AddDriver
72 ##end methodlist
73 ##end class
75 ##begin class
76 ##begin config
77 basename ATABus
78 type hidd
79 classid CLID_Hidd_ATABus
80 classdatatype struct ATA_BusData
81 superclass CLID_Hidd
82 classptr_field busClass
83 ##end config
85 ##begin methodlist
86 .interface Root
87 New
88 Dispose
89 Get
90 Set
91 .interface Hidd_ATABus
92 GetPIOInterface
93 GetDMAInterface
94 SetXferMode
95 ##end methodlist
96 ##end class