mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 20:51:28 +00:00
kvm: Rename early_printk.c to 8250-serial.c
The 8250 emulation is no longer there to just support early_printk() so rename the source file to reflect that. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
8bb34e0dfa
commit
899fe06304
@@ -1,4 +1,4 @@
|
||||
#include "kvm/early_printk.h"
|
||||
#include "kvm/8250-serial.h"
|
||||
|
||||
#include "kvm/ioport.h"
|
||||
#include "kvm/util.h"
|
||||
@@ -171,7 +171,7 @@ static struct ioport_operations serial8250_ops = {
|
||||
.io_out = serial8250_out,
|
||||
};
|
||||
|
||||
void early_printk__init(void)
|
||||
void serial8250__init(void)
|
||||
{
|
||||
ioport__register(device.iobase, &serial8250_ops, 8);
|
||||
}
|
||||
@@ -9,10 +9,10 @@ export E Q
|
||||
|
||||
PROGRAM = kvm
|
||||
|
||||
OBJS += 8250-serial.o
|
||||
OBJS += blk-virtio.o
|
||||
OBJS += cpuid.o
|
||||
OBJS += disk-image.o
|
||||
OBJS += early_printk.o
|
||||
OBJS += interrupt.o
|
||||
OBJS += ioport.o
|
||||
OBJS += kvm.o
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef KVM__8250_SERIAL_H
|
||||
#define KVM__8250_SERIAL_H
|
||||
|
||||
struct kvm;
|
||||
|
||||
void serial8250__init(void);
|
||||
void serial8250__interrupt(struct kvm *self);
|
||||
|
||||
#endif /* KVM__8250_SERIAL_H */
|
||||
@@ -1,9 +0,0 @@
|
||||
#ifndef KVM__EARLY_PRINTK_H
|
||||
#define KVM__EARLY_PRINTK_H
|
||||
|
||||
struct kvm;
|
||||
|
||||
void early_printk__init(void);
|
||||
void serial8250__interrupt(struct kvm *self);
|
||||
|
||||
#endif /* KVM__EARLY_PRINTK_H */
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "kvm/kvm.h"
|
||||
|
||||
#include "kvm/early_printk.h"
|
||||
#include "kvm/8250-serial.h"
|
||||
#include "kvm/blk-virtio.h"
|
||||
#include "kvm/disk-image.h"
|
||||
#include "kvm/util.h"
|
||||
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
|
||||
if (single_step)
|
||||
kvm__enable_singlestep(kvm);
|
||||
|
||||
early_printk__init();
|
||||
serial8250__init();
|
||||
pci__init();
|
||||
|
||||
blk_virtio__init(kvm);
|
||||
|
||||
Reference in New Issue
Block a user