Loading src/drivers/ata/libahci_debug.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -772,7 +772,7 @@ unsigned int libahci_debug_saxigp1_save(struct ata_port *ap, size_t dump_size) return 0; // should be non-zero when error, 0 is OK usually return 0; // should be non-zero when error, 0 is OK usually } } counter_save = (u32*) (pElphel_buf->vaddr + counter_offset); counter_save = (u32*) (pElphel_buf->vaddr + counter_offset); dev_err(dev, "Copying 0x%x bytes of data from saxigp1 to memory",dump_size); memcpy_fromio(pElphel_buf->vaddr + buffer_offset + (page_cntr * dump_size), ioptr, dump_size); memcpy_fromio(pElphel_buf->vaddr + buffer_offset + (page_cntr * dump_size), ioptr, dump_size); counter_save[0] = page_cntr; counter_save[0] = page_cntr; counter_save[1] = dump_size; counter_save[1] = dump_size; Loading src/include/elphel/elphel393-mem.h 0 → 100644 +27 −0 Original line number Original line Diff line number Diff line /*!*************************************************************************** *! FILE NAME : elphel393-mem.h *! DESCRIPTION: *! Copyright (C) 2015 Elphel, Inc. *! -----------------------------------------------------------------------------** *! *! 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 <http://www.gnu.org/licenses/>. *!****************************************************************************/ struct elphel_buf_t { void *vaddr; dma_addr_t paddr; ssize_t size; }; extern struct elphel_buf_t *pElphel_buf; Loading
src/drivers/ata/libahci_debug.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -772,7 +772,7 @@ unsigned int libahci_debug_saxigp1_save(struct ata_port *ap, size_t dump_size) return 0; // should be non-zero when error, 0 is OK usually return 0; // should be non-zero when error, 0 is OK usually } } counter_save = (u32*) (pElphel_buf->vaddr + counter_offset); counter_save = (u32*) (pElphel_buf->vaddr + counter_offset); dev_err(dev, "Copying 0x%x bytes of data from saxigp1 to memory",dump_size); memcpy_fromio(pElphel_buf->vaddr + buffer_offset + (page_cntr * dump_size), ioptr, dump_size); memcpy_fromio(pElphel_buf->vaddr + buffer_offset + (page_cntr * dump_size), ioptr, dump_size); counter_save[0] = page_cntr; counter_save[0] = page_cntr; counter_save[1] = dump_size; counter_save[1] = dump_size; Loading
src/include/elphel/elphel393-mem.h 0 → 100644 +27 −0 Original line number Original line Diff line number Diff line /*!*************************************************************************** *! FILE NAME : elphel393-mem.h *! DESCRIPTION: *! Copyright (C) 2015 Elphel, Inc. *! -----------------------------------------------------------------------------** *! *! 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 <http://www.gnu.org/licenses/>. *!****************************************************************************/ struct elphel_buf_t { void *vaddr; dma_addr_t paddr; ssize_t size; }; extern struct elphel_buf_t *pElphel_buf;