diff options
author | marius <marius@FreeBSD.org> | 2005-09-28 14:54:07 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-09-28 14:54:07 +0000 |
commit | fe0a34c8f15fa82e0fec35f34ee9c6efe4abdcc4 (patch) | |
tree | bb4b1851d014027e2b948702d0726e8539fa0e12 /sys/powerpc | |
parent | 2d942f188d24ea6077fd2e56a8676851b448c161 (diff) | |
download | FreeBSD-src-fe0a34c8f15fa82e0fec35f34ee9c6efe4abdcc4.zip FreeBSD-src-fe0a34c8f15fa82e0fec35f34ee9c6efe4abdcc4.tar.gz |
Add a font width argument to vi_load_font_t, vi_save_font_t and vi_putm_t
and do some preparations for handling 12x22 fonts (currently lots of code
implies and/or hardcodes a font width of 8 pixels). This will be required
on sparc64 which uses a default font size of 12x22 in order to add font
loading and saving support as well as to use a syscons(4)-supplied mouse
pointer image.
This API breakage is committed now so it can be MFC'ed in time for 6.0
and later on upcoming framebuffer drivers destined for use on sparc64
and which are expected to rely on using font loading internally and on
a syscons(4)-supplied mouse pointer image can be easily MFC'ed to
RELENG_6 rather than requiring a backport.
Tested on: i386, sparc64, make universe
MFC after: 1 week
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/ofw/ofw_syscons.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/powerpc/ofw/ofw_syscons.c b/sys/powerpc/ofw/ofw_syscons.c index 20febee..1296ea6 100644 --- a/sys/powerpc/ofw/ofw_syscons.c +++ b/sys/powerpc/ofw/ofw_syscons.c @@ -22,8 +22,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ #include <sys/cdefs.h> @@ -404,16 +402,16 @@ ofwfb_set_mode(video_adapter_t *adp, int mode) } static int -ofwfb_save_font(video_adapter_t *adp, int page, int size, u_char *data, - int c, int count) +ofwfb_save_font(video_adapter_t *adp, int page, int size, int width, + u_char *data, int c, int count) { TODO; return (0); } static int -ofwfb_load_font(video_adapter_t *adp, int page, int size, u_char *data, - int c, int count) +ofwfb_load_font(video_adapter_t *adp, int page, int size, int width, + u_char *data, int c, int count) { struct ofwfb_softc *sc; @@ -812,7 +810,7 @@ ofwfb_puts(video_adapter_t *adp, vm_offset_t off, u_int16_t *s, int len) static int ofwfb_putm(video_adapter_t *adp, int x, int y, uint8_t *pixel_image, - uint32_t pixel_mask, int size) + uint32_t pixel_mask, int size, int width) { struct ofwfb_softc *sc; |