Searched refs:r_res2 (Results 1 - 9 of 9) sorted by relevance

/freebsd-12-stable/sys/dev/ata/chipsets/
H A Data-siliconimage.c117 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
135 ATA_OUTL(ctlr->r_res2, 0x0200, 0x00000002);
146 if (ctlr->r_res2) {
253 ch->r_io[i].res = ctlr->r_res2;
256 ch->r_io[ATA_CONTROL].res = ctlr->r_res2;
258 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
261 ch->r_io[ATA_BMCMD_PORT].res = ctlr->r_res2;
263 ch->r_io[ATA_BMSTAT_PORT].res = ctlr->r_res2;
265 ch->r_io[ATA_BMDTP_PORT].res = ctlr->r_res2;
269 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
[all...]
H A Data-promise.c263 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
269 u_int32_t dimm = ATA_INL(ctlr->r_res2, 0x000c0080);
282 ATA_INL(ctlr->r_res2, 0x000c0088) & (1<<16) ?
286 ATA_OUTL(ctlr->r_res2, 0x000c000c,
287 (ATA_INL(ctlr->r_res2, 0x000c000c) & 0xffff0000));
318 ctlr->channels = ((ATA_INL(ctlr->r_res2, 0x48) & 0x01) > 0) +
319 ((ATA_INL(ctlr->r_res2, 0x48) & 0x02) > 0) + 2;
345 ATA_OUTL(ctlr->r_res2, stat_reg, 0x000000ff);
349 ATA_OUTL(ctlr->r_res2, 0x44, ATA_INL(ctlr->r_res2,
[all...]
H A Data-nvidia.c207 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
217 /* MCP55 seems to need some time to allow r_res2 read. */
221 ATA_OUTL(ctlr->r_res2, offset, 0x00ff00ff);
224 ATA_OUTL(ctlr->r_res2, offset + 4, 0x000d000d);
227 ATA_OUTL(ctlr->r_res2, 0x0400,
228 ATA_INL(ctlr->r_res2, 0x0400) & 0xfffffff9);
232 ATA_OUTB(ctlr->r_res2, offset, 0xff);
235 ATA_OUTB(ctlr->r_res2, offset + 1, 0xdd);
259 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
261 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
[all...]
H A Data-intel.c231 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
271 ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
273 if (ctlr->r_res2 != NULL) {
278 ATA_OUTL(ctlr->r_res2, 0x0C,
279 ATA_INL(ctlr->r_res2, 0x0C) | 0xf);
286 ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
289 if (ctlr->r_res2 != NULL ||
325 /* if r_res2 is valid it points to SATA interface registers */
326 if (ctlr->r_res2) {
327 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
[all...]
H A Data-serverworks.c113 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit)))
137 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
185 ch->r_io[i].res = ctlr->r_res2;
220 ATA_OUTL(ctlr->r_res2, ch_offset + 0x80,
221 ATA_INL(ctlr->r_res2, ch_offset + 0x80) & ~0x00040000);
222 ATA_OUTL(ctlr->r_res2, ch_offset + 0x88, 0);
H A Data-sis.c188 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
215 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
217 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
219 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
H A Data-via.c167 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
250 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
252 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
254 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
/freebsd-12-stable/sys/dev/ata/
H A Data-pci.c153 if (ctlr->r_res2) {
155 bus_space_unmap(rman_get_bustag(ctlr->r_res2),
156 rman_get_bushandle(ctlr->r_res2), rman_get_size(ctlr->r_res2));
158 bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2);
H A Data-pci.h51 struct resource *r_res2; member in struct:ata_pci_controller

Completed in 49 milliseconds