#include "config.h"
#include "dev_interface.h"
#include "dev_tunnelled.h"
#include "atacmds.h"
#include "scsicmds.h"
#include "sg_unaligned.h"
#include "static_assert.h"
#include "utility.h"
#include <errno.h>
Go to the source code of this file.
|
static void | jmbassert_failed (int line, const char *expr) |
|
static void | jmb_xor (uint8_t(&data)[512]) |
|
static uint32_t | jmb_crc (const uint8_t(&data)[512]) |
|
static uint32_t | jmb_get_crc (const uint8_t(&data)[512]) |
|
static void | jmb_put_crc (uint8_t(&data)[512], uint32_t crc) |
|
static bool | jmb_check_crc (const uint8_t(&data)[512]) |
|
static void | jmb_put_le32 (uint8_t(&data)[512], unsigned index, uint32_t val) |
|
static void | jmb_set_wakeup_sector (uint8_t(&data)[512], int id) |
|
static void | jmb_set_request_sector (uint8_t(&data)[512], uint8_t version, uint32_t cmd_id, const uint8_t *cmd, unsigned cmdsize) |
|
static int | jmb_get_sector_type (const uint8_t(&data)[512]) |
|
static void | jmb_check_funcs () |
|
static bool | ata_read_lba8 (ata_device *atadev, uint8_t lba8, uint8_t(&data)[512]) |
|
static bool | ata_write_lba8 (ata_device *atadev, uint8_t lba8, const uint8_t(&data)[512]) |
|
static int | scsi_get_lba_size (scsi_device *scsidev) |
|
static bool | scsi_read_lba8 (scsi_device *scsidev, uint8_t lba8, uint8_t(&data)[512]) |
|
static bool | scsi_write_lba8 (scsi_device *scsidev, uint8_t lba8, const uint8_t(&data)[512]) |
|
static int | jmb39x::is_supported_by_jmb (const ata_in_regs &r) |
|
◆ jmbassert
#define jmbassert |
( |
|
expr | ) |
(!(expr) ? jmbassert_failed(__LINE__, #expr) : (void)0) |
◆ ata_read_lba8()
static bool ata_read_lba8 |
( |
ata_device * |
atadev, |
|
|
uint8_t |
lba8, |
|
|
uint8_t(&) |
data[512] |
|
) |
| |
|
static |
◆ ata_write_lba8()
static bool ata_write_lba8 |
( |
ata_device * |
atadev, |
|
|
uint8_t |
lba8, |
|
|
const uint8_t(&) |
data[512] |
|
) |
| |
|
static |
◆ jmb_check_crc()
static bool jmb_check_crc |
( |
const uint8_t(&) |
data[512] | ) |
|
|
inlinestatic |
◆ jmb_check_funcs()
static void jmb_check_funcs |
( |
| ) |
|
|
static |
◆ jmb_crc()
static uint32_t jmb_crc |
( |
const uint8_t(&) |
data[512] | ) |
|
|
static |
◆ jmb_get_crc()
static uint32_t jmb_get_crc |
( |
const uint8_t(&) |
data[512] | ) |
|
|
inlinestatic |
◆ jmb_get_sector_type()
static int jmb_get_sector_type |
( |
const uint8_t(&) |
data[512] | ) |
|
|
static |
◆ jmb_put_crc()
static void jmb_put_crc |
( |
uint8_t(&) |
data[512], |
|
|
uint32_t |
crc |
|
) |
| |
|
inlinestatic |
◆ jmb_put_le32()
static void jmb_put_le32 |
( |
uint8_t(&) |
data[512], |
|
|
unsigned |
index, |
|
|
uint32_t |
val |
|
) |
| |
|
inlinestatic |
◆ jmb_set_request_sector()
static void jmb_set_request_sector |
( |
uint8_t(&) |
data[512], |
|
|
uint8_t |
version, |
|
|
uint32_t |
cmd_id, |
|
|
const uint8_t * |
cmd, |
|
|
unsigned |
cmdsize |
|
) |
| |
|
static |
◆ jmb_set_wakeup_sector()
static void jmb_set_wakeup_sector |
( |
uint8_t(&) |
data[512], |
|
|
int |
id |
|
) |
| |
|
static |
◆ jmb_xor()
static void jmb_xor |
( |
uint8_t(&) |
data[512] | ) |
|
|
static |
◆ jmbassert_failed()
static void jmbassert_failed |
( |
int |
line, |
|
|
const char * |
expr |
|
) |
| |
|
static |
◆ scsi_get_lba_size()
◆ scsi_read_lba8()
static bool scsi_read_lba8 |
( |
scsi_device * |
scsidev, |
|
|
uint8_t |
lba8, |
|
|
uint8_t(&) |
data[512] |
|
) |
| |
|
static |
◆ scsi_write_lba8()
static bool scsi_write_lba8 |
( |
scsi_device * |
scsidev, |
|
|
uint8_t |
lba8, |
|
|
const uint8_t(&) |
data[512] |
|
) |
| |
|
static |
◆ dev_jmb39x_raid_cpp_svnid
const char* dev_jmb39x_raid_cpp_svnid = "$Id: dev_jmb39x_raid.cpp 5644 2024-12-10 14:39:22Z chrfranke $" |