target_t -> struct target
[openocd.git] / src / flash / lpc3180_nand_controller.c
index 016fa70cbf5c82d45c75eed939d6733782ba4fec..e4b0475fbea5bdcd051d09c201b56ac7c4370184 100644 (file)
@@ -37,7 +37,7 @@ NAND_DEVICE_COMMAND_HANDLER(lpc3180_nand_device_command)
                return ERROR_FLASH_BANK_INVALID;
        }
 
-       target_t *target = get_target(args[1]);
+       struct target *target = get_target(args[1]);
        if (NULL == target)
        {
                LOG_ERROR("target '%s' not defined", args[1]);
@@ -96,7 +96,7 @@ static int lpc3180_pll(int fclkin, uint32_t pll_ctrl)
 
 static float lpc3180_cycle_time(struct lpc3180_nand_controller *lpc3180_info)
 {
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
        uint32_t sysclk_ctrl, pwr_ctrl, hclkdiv_ctrl, hclkpll_ctrl;
        int sysclk;
        int hclk;
@@ -147,7 +147,7 @@ static float lpc3180_cycle_time(struct lpc3180_nand_controller *lpc3180_info)
 static int lpc3180_init(struct nand_device_s *nand)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
        int bus_width = nand->bus_width ? : 8;
        int address_cycles = nand->address_cycles ? : 3;
        int page_size = nand->page_size ? : 512;
@@ -277,7 +277,7 @@ static int lpc3180_init(struct nand_device_s *nand)
 static int lpc3180_reset(struct nand_device_s *nand)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -319,7 +319,7 @@ static int lpc3180_reset(struct nand_device_s *nand)
 static int lpc3180_command(struct nand_device_s *nand, uint8_t command)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -349,7 +349,7 @@ static int lpc3180_command(struct nand_device_s *nand, uint8_t command)
 static int lpc3180_address(struct nand_device_s *nand, uint8_t address)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -379,7 +379,7 @@ static int lpc3180_address(struct nand_device_s *nand, uint8_t address)
 static int lpc3180_write_data(struct nand_device_s *nand, uint16_t data)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -409,7 +409,7 @@ static int lpc3180_write_data(struct nand_device_s *nand, uint16_t data)
 static int lpc3180_read_data(struct nand_device_s *nand, void *data)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -471,7 +471,7 @@ static int lpc3180_read_data(struct nand_device_s *nand, void *data)
 static int lpc3180_write_page(struct nand_device_s *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
        int retval;
        uint8_t status;
 
@@ -610,7 +610,7 @@ static int lpc3180_write_page(struct nand_device_s *nand, uint32_t page, uint8_t
 static int lpc3180_read_page(struct nand_device_s *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {
@@ -757,7 +757,7 @@ static int lpc3180_read_page(struct nand_device_s *nand, uint32_t page, uint8_t
 static int lpc3180_controller_ready(struct nand_device_s *nand, int timeout)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
        uint8_t status = 0x0;
 
        if (target->state != TARGET_HALTED)
@@ -791,7 +791,7 @@ static int lpc3180_controller_ready(struct nand_device_s *nand, int timeout)
 static int lpc3180_nand_ready(struct nand_device_s *nand, int timeout)
 {
        struct lpc3180_nand_controller *lpc3180_info = nand->controller_priv;
-       target_t *target = lpc3180_info->target;
+       struct target *target = lpc3180_info->target;
 
        if (target->state != TARGET_HALTED)
        {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)