struct mflash_gpio_drv
{
- char *name;
+ const char *name;
int (*set_gpio_to_output) (struct mflash_gpio_num gpio);
int (*set_gpio_output_val) (struct mflash_gpio_num gpio, uint8_t val);
};
struct nand_device
{
- char *name;
+ const char *name;
struct nand_flash_controller *controller;
void *controller_priv;
struct nand_manufacturer *manufacturer;
struct nand_manufacturer
{
int id;
- char *name;
+ const char *name;
};
struct nand_info
{
- char *name;
+ const char *name;
int id;
int page_size;
int chip_size;
struct nand_flash_controller
{
/** Driver name that is used to select it from configuration files. */
- char *name;
+ const char *name;
const struct command_registration *commands;
uint16_t cidr_nvpsiz2;
uint16_t cidr_eproc;
uint16_t cidr_version;
- char *target_name;
+ const char *target_name;
/* flash auto-detection */
uint8_t flash_autodetection;
*/
struct flash_bank
{
- char *name;
+ const char *name;
struct target *target; /**< Target to which this bank belongs. */
* Gives a human-readable name of this flash driver,
* This field is used to select and initialize the driver.
*/
- char *name;
+ const char *name;
/**
* An array of driver-specific commands to register. When called
/* chip id register */
uint32_t cidr;
- char * target_name;
+ const char * target_name;
uint32_t cclk;
uint32_t sector_size_break;
static const struct pic32mx_devs_s {
uint8_t devid;
- char *name;
+ const char *name;
} pic32mx_devs[] = {
{0x38, "360F512L"},
{0x34, "360F256L"},
uint32_t dc0;
uint32_t dc1;
- char * target_name;
+ const char * target_name;
uint32_t sramsiz;
uint32_t flshsz;
static struct {
uint32_t partno;
- char *partname;
+ const char *partname;
} StellarisParts[] =
{
{0x0001,"LM3S101"},
uint32_t technology_family;
uint32_t rom_flash;
uint32_t part_number;
- char * part_name;
+ const char * part_name;
};
uint32_t technology_family;
uint32_t rom_flash;
uint32_t part_number;
- char *part_name;
+ const char *part_name;
/* we shall not rely on the caller in this test, this function allocates memory,
thus and executing the code more than once may cause memory leak */
{
int c;
unsigned int n;
- char *name;
+ const char *name;
if (argc == 1) {
fprintf(stderr, "bin2char <varname>\n");
}
if (c->name)
- free(c->name);
+ free((void *)c->name);
if (c->help)
free((void*)c->help);
if (c->usage)
struct command
{
- char *name;
+ const char *name;
const char *help;
const char *usage;
struct command *parent;
struct pld_driver
{
- char *name;
+ const char *name;
__PLD_DEVICE_COMMAND((*pld_device_command));
const struct command_registration *commands;
int (*load)(struct pld_device *pld_device, const char *filename);
struct service *next = c->next;
if (c->name)
- free(c->name);
+ free((void *)c->name);
if (c->type == CONNECTION_PIPE)
{
struct service
{
- char *name;
+ const char *name;
enum connection_type type;
const char *port;
unsigned short portnumber;
struct reg_param
{
- char *reg_name;
+ const char *reg_name;
uint32_t size;
uint8_t *value;
enum param_direction direction;
};
static const struct arm9tdmi_vector {
- char *name;
+ const char *name;
uint32_t value;
} arm9tdmi_vectors[] = {
{"reset", ARM9TDMI_RESET_VECTOR},
uint8_t Rd = (opcode >> 8) & 0x7;
uint8_t Rn;
uint32_t SP = opcode & (1 << 11);
- char *reg_name;
+ const char *reg_name;
instruction->type = ARM_ADD;
*/
static const struct {
unsigned id;
- char *name;
+ const char *name;
unsigned bits;
} armv7m_regs[] = {
{ ARMV7M_R0, "r0", 32 },
static const struct
{
unsigned id;
- char *name;
+ const char *name;
unsigned bits;
uint32_t r_cmd;
uint32_t w_cmd;
struct dsp563xx_core_reg
{
uint32_t num;
- char *name;
+ const char *name;
uint32_t size;
uint32_t r_cmd;
uint32_t w_cmd;
struct etm_capture_driver
{
- char *name;
+ const char *name;
const struct command_registration *commands;
int (*init)(struct etm_context *etm_ctx);
trace_status_t (*status)(struct etm_context *etm_ctx);
struct reg
{
- char *name;
+ const char *name;
void *value;
bool dirty;
bool valid;
struct reg_cache
{
- char *name;
+ const char *name;
struct reg_cache *next;
struct reg *reg_list;
unsigned num_regs;
* Name of this type of target. Do @b not access this
* field directly, use target_type_name() instead.
*/
- char *name;
+ const char *name;
/* poll current target status */
int (*poll)(struct target *target);