Lines Matching full:mmio
25 #define VIA_WDT_MMIO_BASE 0xe8 /* MMIO region base address */
30 #define VIA_WDT_CONF_MMIO 0x02 /* 1: enable watchdog MMIO */
33 * The MMIO region contains the watchdog control register and the
36 #define VIA_WDT_MMIO_LEN 8 /* MMIO region length in bytes */
37 #define VIA_WDT_CTL 0 /* MMIO addr+0: state/control reg. */
38 #define VIA_WDT_COUNT 4 /* MMIO addr+4: timer counter reg. */
69 static unsigned int mmio; variable
170 * Allocate a MMIO region which contains watchdog control register in wdt_probe()
177 dev_err(&pdev->dev, "MMIO allocation failed\n"); in wdt_probe()
186 pci_read_config_dword(pdev, VIA_WDT_MMIO_BASE, &mmio); in wdt_probe()
187 if (mmio) { in wdt_probe()
188 dev_info(&pdev->dev, "VIA Chipset watchdog MMIO: %x\n", mmio); in wdt_probe()
190 dev_err(&pdev->dev, "MMIO setting failed. Check BIOS.\n"); in wdt_probe()
194 if (!request_mem_region(mmio, VIA_WDT_MMIO_LEN, "via_wdt")) { in wdt_probe()
195 dev_err(&pdev->dev, "MMIO region busy\n"); in wdt_probe()
199 wdt_mem = ioremap(mmio, VIA_WDT_MMIO_LEN); in wdt_probe()
201 dev_err(&pdev->dev, "cannot remap VIA wdt MMIO registers\n"); in wdt_probe()
225 release_mem_region(mmio, VIA_WDT_MMIO_LEN); in wdt_probe()
238 release_mem_region(mmio, VIA_WDT_MMIO_LEN); in wdt_remove()