asagiri/arch/aarch64/device.c
2023-10-28 22:59:02 +03:00

45 lines
1.3 KiB
C

/**
* Initializer for device addresses of Asagiri
* Copyright (C) 2023 Asagiri contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <bits/alltypes.h>
#include <device.h>
uint32_t MMIO_BASE = 0;
uint32_t GPIO_BASE = 0;
uint32_t UART_BASE = 0;
uint32_t GPPUD = 0;
uint32_t GPPUDCLK0 = 0;
uint32_t UART_DR = 0;
uint32_t UART_FR = 0;
uint32_t UART_IBRD = 0;
uint32_t UART_FBRD = 0;
uint32_t UART_LCRH = 0;
uint32_t UART_CR = 0;
uint32_t UART_IMSC = 0;
uint32_t UART_ICR = 0;
uint32_t MBOX_BASE = 0;
uint32_t MBOX_READ = 0;
uint32_t MBOX_POLL = 0;
uint32_t MBOX_SENDER = 0;
uint32_t MBOX_STATUS = 0;
uint32_t MBOX_CONFIG = 0;
uint32_t MBOX_WRITE = 0;