What is the meaning of Tam_o'shanter?

A type of woolen hat developed in Scotland, a toorie bunnet.

Source: wiktionary.org