Landfall

pkg/landfall-examples/hw_info/defs.h

253:d7e274394389
9 months ago Paul Boddie Added TCU support to the hw_info program. cpm-library-improvements
     1 /*     2  * Common declarations for chip-specific definitions.     3  *     4  * Copyright (C) 2023, 2024 Paul Boddie <paul@boddie.org.uk>     5  *     6  * This program is free software; you can redistribute it and/or     7  * modify it under the terms of the GNU General Public License as     8  * published by the Free Software Foundation; either version 2 of     9  * the License, or (at your option) any later version.    10  *    11  * This program is distributed in the hope that it will be useful,    12  * but WITHOUT ANY WARRANTY; without even the implied warranty of    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    14  * GNU General Public License for more details.    15  *    16  * You should have received a copy of the GNU General Public License    17  * along with this program; if not, write to the Free Software    18  * Foundation, Inc., 51 Franklin Street, Fifth Floor,    19  * Boston, MA  02110-1301, USA    20  */    21     22 #pragma once    23     24 #include "common.h"    25     26     27     28 /* Memory regions. */    29     30 extern const char *io_memory_regions[];    31     32     33     34 /* AIC definitions. */    35     36 extern void *aic_channels[];    37     38 extern const unsigned int num_aic_channels;    39     40 extern l4_cap_idx_t aic_irqs[];    41     42     43     44 /* CPM definitions. */    45     46 extern struct clock_info clocks[];    47     48     49     50 /* DMA definitions. */    51     52 extern void *dma_channels[];    53     54 extern const unsigned int num_dma_channels;    55     56 extern struct dma_region dma_regions[];    57     58 extern const unsigned int num_dma_regions;    59     60 extern l4_cap_idx_t dma_irq;    61     62     63     64 /* GPIO definitions. */    65     66 extern const unsigned int num_gpio_ports;    67     68 extern struct gpio_port gpio_ports[];    69     70 extern const char gpio_port_labels[];    71     72     73     74 /* I2C definitions. */    75     76 extern void *i2c_channels[];    77     78 extern const unsigned int num_i2c_channels;    79     80 extern l4_cap_idx_t i2c_irqs[];    81     82     83     84 /* SPI definitions. */    85     86 extern void *spi_channels[];    87     88 extern const unsigned int num_spi_channels;    89     90     91     92 /* TCU definitions. */    93     94 extern void *tcu_channels[];    95     96 extern const unsigned int num_tcu_channels;    97     98 extern l4_cap_idx_t tcu_irq;