Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit add4d9a9 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Bartlomiej Zolnierkiewicz
Browse files

ide-h8300: remove mm_{inw|outw}()



Remove two no longer used functions that I've overlooked...

Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 253275c5
Loading
Loading
Loading
Loading
+0 −22
Original line number Original line Diff line number Diff line
@@ -22,28 +22,6 @@
	(r);				\
	(r);				\
})
})


static void mm_outw(u16 d, unsigned long a)
{
	__asm__("mov.b %w0,r2h\n\t"
		"mov.b %x0,r2l\n\t"
		"mov.w r2,@%1"
		:
		:"r"(d),"r"(a)
		:"er2");
}

static u16 mm_inw(unsigned long a)
{
	register u16 r __asm__("er0");
	__asm__("mov.w @%1,r2\n\t"
		"mov.b r2l,%x0\n\t"
		"mov.b r2h,%w0"
		:"=r"(r)
		:"r"(a)
		:"er2");
	return r;
}

static void h8300_tf_load(ide_drive_t *drive, struct ide_cmd *cmd)
static void h8300_tf_load(ide_drive_t *drive, struct ide_cmd *cmd)
{
{
	ide_hwif_t *hwif = drive->hwif;
	ide_hwif_t *hwif = drive->hwif;